exists to isdir, thanks Niphlod

This commit is contained in:
mdipierro committed 2013-08-27 17:18:27 -05:00
1 parent cc0014f42a
commit a626c213a7
8 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ from mod_python import apache
path = os.path.dirname(os.path.abspath(__file__))
os.chdir(path)
if not os.path.exists('applications'):
if not os.path.isdir('applications'):
raise RuntimeError('Running from the wrong folder')
sys.path = [path] + [p for p in sys.path if not p == path]