handlers check for 'applications' folder
This commit is contained in:
committed by
Michele Comitini
parent
72b3092ef6
commit
13c782eaa6
@@ -33,6 +33,12 @@ import wsgiref.handlers
|
||||
import datetime
|
||||
|
||||
path = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
# os.chdir(path) ?
|
||||
|
||||
if not os.path.exists('applications'):
|
||||
raise RuntimeError('Running from the wrong folder')
|
||||
|
||||
sys.path = [path] + [p for p in sys.path if not p == path]
|
||||
|
||||
sys.modules['cPickle'] = sys.modules['pickle']
|
||||
|
||||
Reference in New Issue
Block a user