fix londiste import
authorMarko Kreen <markokr@gmail.com>
Fri, 4 Dec 2009 16:19:00 +0000 (18:19 +0200)
committerMarko Kreen <markokr@gmail.com>
Fri, 4 Dec 2009 16:19:00 +0000 (18:19 +0200)
python/londiste.py

index 3fb6b6badf65e52b7d9abf7ec56604ee2981a777..c2907d2bb7d31169cc6e5645eb7132c47547d9db 100755 (executable)
@@ -12,7 +12,7 @@ import skytools
 
 # python 2.3 will try londiste.py first...
 if os.path.exists(os.path.join(sys.path[0], 'londiste.py')) \
-    and not os.path.exists(os.path.join(sys.path[0], 'londiste')):
+    and not os.path.isdir(os.path.join(sys.path[0], 'londiste')):
     del sys.path[0]
 
 import londiste, pgq.cascade.admin