Files
web2py/web2py.py
Massimo Di Pierro d421c1321b initial commit
2011-11-22 23:30:42 -06:00

22 lines
481 B
Python
Executable File

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
if '__file__' in globals():
path = os.path.dirname(os.path.abspath(__file__))
os.chdir(path)
else:
path = os.getcwd() # Seems necessary for py2exe
sys.path = [path]+[p for p in sys.path if not p==path]
# import gluon.import_all ##### This should be uncommented for py2exe.py
import gluon.widget
# Start Web2py and Web2py cron service!
if __name__ == '__main__':
gluon.widget.start(cron=True)