15 lines
392 B
Python
15 lines
392 B
Python
#!/usr/bin/env python3
|
|
"""Portal启动脚本"""
|
|
import os
|
|
import sys
|
|
|
|
# 使用venv的ahserver
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'pkgs'))
|
|
|
|
from ahserver.configuredServer import ConfiguredServer
|
|
from ahserver.auth_api import AuthAPI
|
|
|
|
if __name__ == '__main__':
|
|
server = ConfiguredServer(AuthAPI, workdir=os.path.dirname(os.path.abspath(__file__)))
|
|
server.run()
|