From 44d03c3dd514b8464fea28a5dd59fb84869af1b4 Mon Sep 17 00:00:00 2001 From: Andrew Gough Date: Mon, 20 May 2013 08:01:24 +1000 Subject: [PATCH] Added /home/goughy & %USERPROFILE% entries for extensions also --- src/_premake_main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/_premake_main.lua b/src/_premake_main.lua index b2bcdf58..bc355c9f 100644 --- a/src/_premake_main.lua +++ b/src/_premake_main.lua @@ -38,9 +38,11 @@ -- Enable extensions - the '?' character is replaced with the extension -- name so the extension directory name _must_ be the same as the -- extension Lua file. eg. .../d/d.lua, .../codelite/codelite.lua etc + local home = os.getenv("HOME") or os.getenv("USERPROFILE") local extdirs = { + home .. "/.premake/?/?.lua", path.getdirectory( _PREMAKE_COMMAND ) .. "/ext/?/?.lua", - "./premake/?/?.lua", + "./premake/?/?.lua", "/usr/share/premake/?/?.lua" } for _,v in ipairs(extdirs) do package.path = package.path .. ";" .. v