summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/setup.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/setup.py b/src/setup.py
index c745820..75fb4c9 100644
--- a/src/setup.py
+++ b/src/setup.py
@@ -23,7 +23,6 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
-import os.path
import stat
import sys
@@ -35,8 +34,8 @@ man_pages = [
'scons-time.1',
]
+# change to setup.py directory if it was executed from other dir
(head, tail) = os.path.split(sys.argv[0])
-
if head:
os.chdir(head)
sys.argv[0] = tail