summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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():
"""