可上传自定义静态页面项目
This commit is contained in:
parent
131c0aa8e8
commit
c5b846a16e
6
Gmeek.py
6
Gmeek.py
@ -54,8 +54,12 @@ class GMEEK():
|
|||||||
if os.path.exists(self.root_dir):
|
if os.path.exists(self.root_dir):
|
||||||
shutil.rmtree(self.root_dir)
|
shutil.rmtree(self.root_dir)
|
||||||
|
|
||||||
|
if os.path.exists("copy/"):
|
||||||
|
shutil.copytree("copy/",self.root_dir)
|
||||||
|
else:
|
||||||
|
os.mkdir(self.root_dir)
|
||||||
|
|
||||||
os.mkdir(self.backup_dir)
|
os.mkdir(self.backup_dir)
|
||||||
os.mkdir(self.root_dir)
|
|
||||||
os.mkdir(self.post_dir)
|
os.mkdir(self.post_dir)
|
||||||
|
|
||||||
def defaultConfig(self):
|
def defaultConfig(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user