Skip to content

Commit

Permalink
Create image directory
Browse files Browse the repository at this point in the history
I can't zip an empty folder so now, it will create it
  • Loading branch information
OwOchle authored Mar 13, 2021
1 parent 1c0929c commit 08b0c5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
from checkPath import *
from PLnew import *
from EditInfo import *
from os import mkdir

try:
mkdir('Images')
except:
pass

with open('Settings/settings.json') as f:
f = f.read().replace('\\', '/').replace('//', '/')
Expand All @@ -23,7 +29,6 @@
for item in CMdirs:
maps.append(getHash.gethash(CMpath + item))


PLpath = BSpath + 'Playlists/'
PLfiles = os.listdir(PLpath)
playlists = []
Expand Down Expand Up @@ -58,7 +63,6 @@
input()
exit(1)


if pldl == 'new':
pl_create(PLpath)
else:
Expand Down

0 comments on commit 08b0c5c

Please sign in to comment.