don't list directory contents of something that is empty
This commit is contained in:
parent
76de0b10cb
commit
e7f7d7c34d
@ -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…
Reference in New Issue
Block a user