fix loader parse
@@ -77,7 +77,11 @@ def _parse_file(conan_file_path):
for added in added_modules:
module = sys.modules[added]
if module:
+ try:
folder = os.path.dirname(module.__file__)
+ except AttributeError: # some module doesn't have __file__
+ pass
+ else:
if folder.startswith(current_dir):
module = sys.modules.pop(added)
sys.modules["%s.%s" % (module_id, added)] = module
