代码拉取完成,页面将自动刷新
#!/usr/bin/python
"""
This script is meant for users that wish to run Gate One out of this (GateOne)
directory (as opposed to running setup.py). If you plan to (or already ran)
setup.py please use the 'gateone' script which gets installed in your $PATH
automatically.
"""
import os, sys
WORKING_DIR = os.path.dirname(os.path.abspath(__file__))
setup_py = os.path.join(WORKING_DIR, 'setup.py')
# Insert the path to this script's directory so that the Python interpreter can
# import gateone, termio, terminal, and onoff:
sys.path.insert(0, WORKING_DIR)
# Create the egg-info directory so entry points will work
egg_info_dir = os.path.join(WORKING_DIR, 'gateone.egg-info')
if not os.path.isdir(egg_info_dir):
try:
from commands import getstatusoutput
except ImportError: # Python 3
from subprocess import getstatusoutput
retcode, output = getstatusoutput('python %s egg_info' % setup_py)
if retcode != 0:
print(
"Error: Could not create %s. Permissions problem?" % egg_info_dir)
sys.exit(2)
from gateone.core.server import main
main(installed=False)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。