summaryrefslogtreecommitdiff
path: root/src/leap/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/common')
-rw-r--r--src/leap/common/files.py2
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)