diff options
author | Kali Kaneko <kali@leap.se> | 2013-03-21 00:27:20 +0900 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-03-21 00:27:20 +0900 |
commit | 6ce9563ea4b5d4d6e0cd833d1f12bbf1709a5f13 (patch) | |
tree | 7b0e4bd363929e7a78deeaf0f3e0dc7b25d66978 /src/leap | |
parent | de1cc5864e652b7d06eda4f15143cd57d074180a (diff) | |
parent | 8f3415a431c4a711b9e6f49f5a00302b38d1a308 (diff) |
Merge branch 'develop' of github-kali.github.com:kalikaneko/leap_common into develop
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/common/files.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/common/files.py b/src/leap/common/files.py index a28f548..4c443dd 100644 --- a/src/leap/common/files.py +++ b/src/leap/common/files.py @@ -111,7 +111,7 @@ def which(name, flags=os.X_OK, path_extension="/usr/sbin:/sbin"): result = [] exts = filter(None, os.environ.get('PATHEXT', '').split(os.pathsep)) path = os.environ.get('PATH', None) - path += ":" + path_extension + path = path_extension + os.pathsep + path if path is None: return [] parts = path.split(os.pathsep) |