From 764f495ca6d272b87c6e18b5d15438784a440244 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Tue, 21 Nov 2023 15:45:06 +0800 Subject: [PATCH] =?UTF-8?q?blogBase.json=E6=94=BE=E5=85=A5docs=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gmeek.py b/Gmeek.py index 595a6a8..9a66186 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -293,7 +293,7 @@ options = parser.parse_args() blog=GMEEK(options) -if not os.path.exists("blogBase.json"): +if not os.path.exists(blog.root_dir+"blogBase.json"): print("blogBase is not exists, runAll") blog.runAll() else: @@ -301,13 +301,13 @@ else: print("issue_number=='0', runAll") blog.runAll() else: - f=open("blogBase.json","r") + f=open(blog.root_dir+"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("blogBase.json","w") +listFile=open(blog.root_dir+"blogBase.json","w") listFile.write(json.dumps(blog.blogBase)) listFile.close() ######################################################################################