Permalink
Browse files

Only change to `setup.py` if not already there.

  • Loading branch information...
s0undt3ch committed Dec 30, 2012
1 parent e37da07 commit 3363c43495e9de45d788d2e29232d54ce12f28e8
Showing with 3 additions and 1 deletion.
  1. +3 −1 setup.py
View
@@ -13,7 +13,9 @@
from distutils.sysconfig import get_python_lib, PREFIX
# Change to salt source's directory prior to running any command
-os.chdir(os.path.dirname(__file__))
+setup_dirname = os.path.dirname(__file__)
+if setup_dirname != '':
+ os.chdir(setup_dirname)
# Use setuptools only if the user opts-in by setting the USE_SETUPTOOLS env var
# This ensures consistent behavior but allows for advanced usage with

0 comments on commit 3363c43

Please sign in to comment.