TaB
This commit is contained in:
parent
f267ba214f
commit
3294a41cb4
1 changed files with 4 additions and 4 deletions
|
@ -20,11 +20,11 @@ async def addcharacter(ctx):
|
||||||
zf.extractall('public/singlecharacter')
|
zf.extractall('public/singlecharacter')
|
||||||
zf.close()
|
zf.close()
|
||||||
if os.path.exists("newcharacter.zip"):
|
if os.path.exists("newcharacter.zip"):
|
||||||
os.remove("newcharacter.zip")
|
os.remove("newcharacter.zip")
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
if os.path.exists("public/characters.zip"):
|
if os.path.exists("public/characters.zip"):
|
||||||
os.remove("public/characters.zip")
|
os.remove("public/characters.zip")
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
shutil.make_archive('public/characters', 'zip', 'public/singlecharacter')
|
shutil.make_archive('public/characters', 'zip', 'public/singlecharacter')
|
||||||
|
@ -38,11 +38,11 @@ async def addsound(ctx):
|
||||||
zf.extractall('public/singlesound')
|
zf.extractall('public/singlesound')
|
||||||
zf.close()
|
zf.close()
|
||||||
if os.path.exists("newsound.zip"):
|
if os.path.exists("newsound.zip"):
|
||||||
os.remove("newsound.zip")
|
os.remove("newsound.zip")
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
if os.path.exists("public/sounds.zip"):
|
if os.path.exists("public/sounds.zip"):
|
||||||
os.remove("public/sounds.zip")
|
os.remove("public/sounds.zip")
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
shutil.make_archive('public/sounds', 'zip', 'public/singlesound')
|
shutil.make_archive('public/sounds', 'zip', 'public/singlesound')
|
||||||
|
|
Reference in a new issue