blogBase.json放入docs文件夹

This commit is contained in:
Meekdai 2023-11-21 15:45:06 +08:00
parent a38123450a
commit 764f495ca6

View File

@ -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()
######################################################################################