diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-04-20 17:09:14 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-04-20 17:09:14 +0000 |
commit | f51a51f014fe9b3fbf37223256fefd81cda5be4a (patch) | |
tree | 1318e5049481120b38c540769c4d6a263614be32 /numpy/setup.py | |
parent | 0f8a871123131fd114376673789b0d751c7a172d (diff) | |
download | numpy-f51a51f014fe9b3fbf37223256fefd81cda5be4a.tar.gz |
Remove cwd from sys.path when running numpy/setup.py script.
Diffstat (limited to 'numpy/setup.py')
-rw-r--r-- | numpy/setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/setup.py b/numpy/setup.py index ae28e0eb1..621838aba 100644 --- a/numpy/setup.py +++ b/numpy/setup.py @@ -19,7 +19,8 @@ if __name__ == '__main__': # Remove current working directory from sys.path # to avoid importing numpy.distutils as Python std. distutils: import os, sys - sys.path.remove(os.getcwd()) + for cwd in ['','.',os.getcwd()]: + while cwd in sys.path: sys.path.remove(cwd) from numpy.distutils.core import setup setup(configuration=configuration) |