From 772f4960f567910fe0adcae728f80e99426b64a9 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Tue, 21 Nov 2023 16:11:38 +0800 Subject: [PATCH] Update Gmeek.py --- Gmeek.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Gmeek.py b/Gmeek.py index 9a66186..321e1d0 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -293,7 +293,7 @@ options = parser.parse_args() blog=GMEEK(options) -if not os.path.exists(blog.root_dir+"blogBase.json"): +if not os.path.exists("blogBase.json"): print("blogBase is not exists, runAll") blog.runAll() else: @@ -301,13 +301,15 @@ else: print("issue_number=='0', runAll") blog.runAll() else: - f=open(blog.root_dir+"blogBase.json","r") + f=open("blogBase.json","r") print("blogBase is exists and issue_number!=0, runOne") blog.blogBase=json.loads(f.read()) f.close() blog.runOne(options.issue_number) -listFile=open(blog.root_dir+"blogBase.json","w") +listFile=open("blogBase.json","w") listFile.write(json.dumps(blog.blogBase)) listFile.close() +shutil.copy("blogBase.json",blog.root_dir) + ######################################################################################