Add Premake executable directory to search path for the system script

This commit is contained in:
Jason Perkins 2014-06-27 11:06:17 -04:00
parent 0df2020f6b
commit 55a5feec48

View File

@ -27,7 +27,7 @@
end
-- find it on my paths
local dir = os.pathsearch(fname, _OPTIONS["scripts"], os.getenv("PREMAKE_PATH"))
local dir = os.pathsearch(fname, _OPTIONS["scripts"], os.getenv("PREMAKE_PATH"), path.getdirectory(_PREMAKE_COMMAND))
if dir then
return path.join(dir, fname)
end