mirror of
https://github.com/marcus-alicia/iRedAdmin-Pro-SQL.git
synced 2026-05-26 15:13:38 +00:00
Add files via upload
This commit is contained in:
19
iredadmin.py
Normal file
19
iredadmin.py
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python
|
||||
# Author: Zhang Huangbin <zhb@iredmail.org>
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
|
||||
from libs import iredbase
|
||||
|
||||
# Initialize webpy app.
|
||||
app = iredbase.app
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Starting webpy builtin http server.
|
||||
# WARNING: this should not be used for production.
|
||||
app.run()
|
||||
else:
|
||||
# Run as a WSGI application
|
||||
application = app.wsgifunc()
|
||||
Reference in New Issue
Block a user