exists to isdir, thanks Niphlod
This commit is contained in:
committed by
Michele Comitini
parent
9aee01df62
commit
44f5c0c824
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.6.0-development+timestamp.2013.08.27.16.59.52
|
||||
Version 2.6.0-development+timestamp.2013.08.27.17.17.06
|
||||
|
||||
@@ -57,7 +57,7 @@ import wsgiref.handlers
|
||||
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]
|
||||
|
||||
@@ -35,7 +35,7 @@ import os
|
||||
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]
|
||||
|
||||
@@ -36,7 +36,7 @@ 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]
|
||||
|
||||
@@ -10,7 +10,7 @@ def __ExtensionFactory__():
|
||||
import sys
|
||||
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]
|
||||
import gluon.main
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -48,7 +48,7 @@ import os
|
||||
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]
|
||||
|
||||
@@ -27,7 +27,7 @@ import os
|
||||
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]
|
||||
|
||||
Reference in New Issue
Block a user