summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-11-27 20:03:03 +0000
committerBarry Warsaw <barry@python.org>2010-11-27 20:03:03 +0000
commit37b1e68803462fa20b70360a4c7415a049f9a954 (patch)
treedd3af63545c3b714eef2d91cfb40ff17a565ec90
parent6557c7e69cf92f53849b011509cbbd21bd0e80e5 (diff)
downloadcpython-37b1e68803462fa20b70360a4c7415a049f9a954.tar.gz
Roumen Petrov's fix for when all paths are absolute. (Issue 10520)
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index a6d0af1ea1..d4e981b8fd 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():
"""