This commit is contained in:
cwx
2022-12-20 16:07:14 +08:00
parent 1cd59692df
commit 192c4137ad
4 changed files with 54 additions and 37 deletions
+2 -2
View File
@@ -168,7 +168,7 @@ class comicInfo():
@classmethod
def getDirComic(cls):
if not cls.str_comicName == None:
if cls.str_comicName != None:
return os.path.join(pathStr.base_comic_img, cls.str_comicName)
else:
print("comicName不存在,退出中")
@@ -176,7 +176,7 @@ class comicInfo():
@classmethod
def getDirComicChapter(cls):
if not cls.str_comicName == None and not cls.str_chapter == None:
if cls.str_comicName != None and cls.str_chapter != None:
return os.path.join(pathStr.base_comic_img,cls.str_comicName,cls.str_chapter)
else:
print("comicName与chapter 不存在,退出中")
+7 -3
View File
@@ -1,7 +1,11 @@
import os
import os,datetime
from time import strftime
class pathStr:
base_comic_out = "COMICOUT"
base_CBZ = os.path.join(base_comic_out,"CBZ")
base_comic_img = os.path.join(base_comic_out,"outputComic")
base_conf_path = os.path.join(base_comic_out,".conf")
base_conf_path = os.path.join(base_comic_out,".conf")
date = datetime.datetime.now()
date = date.strftime("%Y%m%d")
base_html_data = os.path.join(base_comic_out,"html_"+str(date))