Explorar o 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 %!s(int64=13) %!d(string=hai) anos
pai
achega
7b0b4b8bbf
Modificáronse 1 ficheiros con 1 adicións e 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