Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 3363c43495e9de45d788d2e29232d54ce12f28e8 1 parent e37da07
Pedro Algarvio authored December 30, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  setup.py
4  setup.py
@@ -13,7 +13,9 @@
13 13
 from distutils.sysconfig import get_python_lib, PREFIX
14 14
 
15 15
 # Change to salt source's directory prior to running any command
16  
-os.chdir(os.path.dirname(__file__))
  16
+setup_dirname = os.path.dirname(__file__)
  17
+if setup_dirname != '':
  18
+    os.chdir(setup_dirname)
17 19
 
18 20
 # Use setuptools only if the user opts-in by setting the USE_SETUPTOOLS env var
19 21
 # This ensures consistent behavior but allows for advanced usage with

0 notes on commit 3363c43

Please sign in to comment.
Something went wrong with that request. Please try again.