Only fix weird path bug in windows
This commit is contained in:
parent
70dcd1107f
commit
3ca51e80b2
|
@ -37,8 +37,9 @@ def find_registered_model_fns(base_path='models'):
|
||||||
found_fns = {}
|
found_fns = {}
|
||||||
module_iter = pkgutil.walk_packages([base_path])
|
module_iter = pkgutil.walk_packages([base_path])
|
||||||
for mod in module_iter:
|
for mod in module_iter:
|
||||||
if os.getcwd() not in mod.module_finder.path:
|
if os.name == 'nt':
|
||||||
continue # I have no idea why this is necessary - I think it's a bug in the latest PyWindows release.
|
if os.getcwd() not in mod.module_finder.path:
|
||||||
|
continue # I have no idea why this is necessary - I think it's a bug in the latest PyWindows release.
|
||||||
if mod.ispkg:
|
if mod.ispkg:
|
||||||
EXCLUSION_LIST = ['flownet2']
|
EXCLUSION_LIST = ['flownet2']
|
||||||
if mod.name not in EXCLUSION_LIST:
|
if mod.name not in EXCLUSION_LIST:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user