532 B
532 B
Imports in Claro
Basic
IMPORT "lib/text.claro" AS text
How paths resolve
When you write IMPORT "something.claro" Claro searches in this order:
- Relative to the importing file’s folder
- Each folder listed in the
CLARO_PATHenvironment variable- separate entries with
;or:
- separate entries with
- The current working directory
CLARO_PATH example
Windows
set CLARO_PATH=C:\claro\lib;C:\mygame\scripts
Linux/macOS
export CLARO_PATH=/opt/claro/lib:/home/me/project/scripts