diff --git a/main.py b/main.py index 9243bdab7..d870ce13a 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,5 @@ import os, sys from pip._internal import main as pipmain -import util.general_utils as gu abs_path = os.path.dirname(os.path.realpath(sys.argv[0])) + '/' @@ -14,7 +13,7 @@ def main(): print(e) input("第三方依赖库未完全安装完毕,请退出程序重试。") exit() - + import util.general_utils as gu if 'http_proxy' in cfg: os.environ['HTTP_PROXY'] = cfg['http_proxy'] if 'https_proxy' in cfg: @@ -119,4 +118,4 @@ if __name__ == "__main__": except BaseException as e: print(e) print(f"[System-err] Replit Web保活服务启动失败:{str(e)}") - main() \ No newline at end of file + main()