Don't iterate over scripts if it doesn't exist
This commit is contained in:
parent
595c827bd3
commit
26404eaabf
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ scripts = []
|
||||||
|
|
||||||
|
|
||||||
def load_scripts(basedir):
|
def load_scripts(basedir):
|
||||||
|
if not os.path.exists(basedir):
|
||||||
|
return
|
||||||
|
|
||||||
for filename in os.listdir(basedir):
|
for filename in os.listdir(basedir):
|
||||||
path = os.path.join(basedir, filename)
|
path = os.path.join(basedir, filename)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue