Add Premake executable directory to search path for the system script
This commit is contained in:
parent
0df2020f6b
commit
55a5feec48
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user