Fix error when script directory doesn't exist

This commit is contained in:
JonnyWong16 2016-01-18 18:30:22 -08:00
parent c98cf858c1
commit 36a99f70a3

View file

@ -1786,7 +1786,7 @@ class Scripts(object):
scripts = {'': ''}
if scriptdir and not os.path.exists(scriptdir):
os.makedirs(scriptdir)
return scripts
for root, dirs, files in os.walk(scriptdir):
for f in files: