-
-
Couldn't load subscription status.
- Fork 640
Locating Scripts
This wiki is no longer being maintained.
When Premake needs to load a script file, via a call to dofile() or include(), or a module via a call to require(), it uses the premake.path variable to locate it. This is a semicolon-delimited string which, by default, includes the following locations, in the specified order:
-
Relative to the currently executing script
-
On the path specified by the
--scriptscommand line argument -
On the paths listed in the
PREMAKE_PATHenvironment variable -
In the
~/.premakedirectory -
In the
~/Library/Application Support/Premakedirectory (Mac OS X only) -
In the
/usr/local/share/premakedirectory -
In the
/usr/share/premakedirectory -
In the directory containing the currently running Premake executable.
Note that these search paths also work for modules (e.g. ~/.premake/monodevelop) and system scripts.
You are free to add or remove paths from premake.path, in either your project or system scripts. Any requests to load scripts after the change will use your modified path.