be tolerant when <boxtyp>_system does not exist
This commit is contained in:
@ -356,6 +356,8 @@ def create_if(name, cfg):
|
|||||||
|
|
||||||
def walk(action):
|
def walk(action):
|
||||||
for rootpath in TO_SYSTEM:
|
for rootpath in TO_SYSTEM:
|
||||||
|
if not exists(rootpath):
|
||||||
|
continue
|
||||||
os.chdir(rootpath)
|
os.chdir(rootpath)
|
||||||
for dirpath, _, files in os.walk('.'):
|
for dirpath, _, files in os.walk('.'):
|
||||||
syspath = dirpath[1:] # remove leading '.'
|
syspath = dirpath[1:] # remove leading '.'
|
||||||
|
Reference in New Issue
Block a user