summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-11-27 20:03:03 (GMT)
committerBarry Warsaw <barry@python.org>2010-11-27 20:03:03 (GMT)
commit34520cdcf47d6af520f9baf719bf14e49afddbf7 (patch)
treeefe2bbfd22f0d7bbfce22d29ec04a4db226e6457 /setup.py
parent30b341f1a57c33197a17acae95b8ce540407ce1c (diff)
downloadcpython-34520cdcf47d6af520f9baf719bf14e49afddbf7.zip
cpython-34520cdcf47d6af520f9baf719bf14e49afddbf7.tar.gz
cpython-34520cdcf47d6af520f9baf719bf14e49afddbf7.tar.bz2
Roumen Petrov's fix for when all paths are absolute. (Issue 10520)
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index a6d0af1..d4e981b 100644
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,8 @@ def add_dir_to_list(dirlist, dir):
for i, path in enumerate(dirlist):
if not os.path.isabs(path):
dirlist.insert(i + 1, dir)
- break
+ return
+ dirlist.insert(0, dir)
def macosx_sdk_root():
"""