Skip to content

Commit d653b4e

Browse files
committed
Add _MAIN_SCRIPT_DIR to module search paths on startup
1 parent 4718103 commit d653b4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_premake_main.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
m.elements = function()
3333
return {
3434
m.installModuleLoader,
35+
m.locateUserScript,
3536
m.prepareEnvironment,
3637
m.preloadModules,
3738
m.runSystemScript,
38-
m.locateUserScript,
3939
m.prepareAction,
4040
m.runUserScript,
4141
m.checkInteractive,
@@ -102,7 +102,7 @@
102102
function m.prepareEnvironment()
103103
math.randomseed(os.time())
104104
_PREMAKE_DIR = path.getdirectory(_PREMAKE_COMMAND)
105-
premake.path = premake.path .. ";" .. _PREMAKE_DIR
105+
premake.path = premake.path .. ";" .. _PREMAKE_DIR .. ";" .. _MAIN_SCRIPT_DIR
106106
end
107107

108108

0 commit comments

Comments
 (0)