Browse Source

don't list directory contents of something that is empty

current_wdka_release
crunk 3 years ago
parent
commit
e7f7d7c34d
  1. 7
      verse/distribusiworkflow.py

7
verse/distribusiworkflow.py

@ -92,9 +92,10 @@ def RemoveMacFolders(path):
def GetCssFile(distribusi):
cssfile = ""
cssfolder = os.path.join("themes/userthemes", distribusi.distribusiname)
for filename in os.listdir(cssfolder):
if filename.endswith(".css"):
cssfile = os.path.join(cssfolder, filename)
if os.path.exists(cssfolder):
for filename in os.listdir(cssfolder):
if filename.endswith(".css"):
cssfile = os.path.join(cssfolder, filename)
return cssfile

Loading…
Cancel
Save