From 984c7e9e12c6e54160af3200917b0e087d21b4cf Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 27 Apr 2023 21:11:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=87=AA=E5=8A=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check_proxy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check_proxy.py b/check_proxy.py index 28711a8..a8e4b72 100644 --- a/check_proxy.py +++ b/check_proxy.py @@ -67,7 +67,11 @@ def patch_and_restart(path): print亮黄('由于您没有设置config_private.py私密配置,现将您的现有配置移动至config_private.py以防止配置丢失,', '另外您可以随时在history子文件夹下找回旧版的程序。') shutil.copyfile('config.py', 'config_private.py') - distutils.dir_util.copy_tree(path+'/chatgpt_academic-master', './') + try: + distutils.dir_util.copy_tree(path+'/gpt_academic-master', './') + except: + from distutils import dir_util + dir_util.copy_tree(path+'/gpt_academic-master', './') import subprocess print亮绿('代码已经更新,即将更新pip包依赖……') for i in reversed(range(5)): time.sleep(1); print(i)