diff options
| author | ruki <[email protected]> | 2024-01-26 23:50:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-26 23:50:30 +0800 |
| commit | 9d01da2a9127f8400e231cfc38e80fa7320b6ef0 (patch) | |
| tree | ed3f44ee6961ed70759beda21d78a65b756b85ef /xmake/core/main.lua | |
| parent | 042362f4c3f1dab8b6b5a32fcbbae20e66e224de (diff) | |
remove PATH in xmake
Diffstat (limited to 'xmake/core/main.lua')
| -rw-r--r-- | xmake/core/main.lua | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index e813c849a..478f0181f 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -202,14 +202,6 @@ function main._init() xmake._PROJECT_DIR = path.join(os.tmpdir(), "local") xmake._PROJECT_FILE = path.join(xmake._PROJECT_DIR, xmake._NAME .. ".lua") end - - -- add the directory of the program file (xmake) to $PATH environment - local programfile = os.programfile() - if programfile and os.isfile(programfile) then - os.addenv("PATH", path.directory(programfile)) - else - os.addenv("PATH", os.programdir()) - end return true end |
