From d653b4e19aad57af5d431c63191f2ee48e4cd73e Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Sun, 22 Mar 2015 12:44:44 -0400 Subject: [PATCH] Add _MAIN_SCRIPT_DIR to module search paths on startup --- src/_premake_main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_premake_main.lua b/src/_premake_main.lua index 24b9e63f..e53b4686 100644 --- a/src/_premake_main.lua +++ b/src/_premake_main.lua @@ -32,10 +32,10 @@ m.elements = function() return { m.installModuleLoader, + m.locateUserScript, m.prepareEnvironment, m.preloadModules, m.runSystemScript, - m.locateUserScript, m.prepareAction, m.runUserScript, m.checkInteractive, @@ -102,7 +102,7 @@ function m.prepareEnvironment() math.randomseed(os.time()) _PREMAKE_DIR = path.getdirectory(_PREMAKE_COMMAND) - premake.path = premake.path .. ";" .. _PREMAKE_DIR + premake.path = premake.path .. ";" .. _PREMAKE_DIR .. ";" .. _MAIN_SCRIPT_DIR end