Explorar el Código

Merge pull request #713 from bpowers/master

setup: only try removing the working dir from the path if its on it
Ask Solem Hoel hace 13 años
padre
commit
7b0b4b8bbf
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      setup.py

+ 1 - 3
setup.py

@@ -11,10 +11,8 @@ if sys.version_info < (2, 5):
 try:
     orig_path = sys.path[:]
     for path in (os.path.curdir, os.getcwd()):
-        try:
+        if path in sys.path:
             sys.path.remove(path)
-        except ValueError:
-            pass
     try:
         import celery.app
         import imp