handlers check for 'applications' folder

This commit is contained in:
mdipierro committed 2013-08-27 16:57:54 -05:00
1 parent 07f74c6362
commit 458779467d
9 files changed
+32 -4

No files matched your search

+4
View File
@@ -34,6 +34,10 @@ from mod_python import apache
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]
import gluon.main