Skip to content

Commit

Permalink
Fix for env_escape bug when importing local packages (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunsdiecker authored Aug 5, 2022
1 parent 6cb54b5 commit eb8b373
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metaflow/plugins/env_escape/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def load():
print("Not using environment escape for '%s' as module present" % prefix)
# In both cases, we don't load our loader since
# the package is locally present
sys.path = old_paths
return
sys.path = old_paths
m = ModuleImporter("{python_executable}", "{pythonpath}", {max_pickle_version}, "{path}", {prefixes})
Expand Down

0 comments on commit eb8b373

Please sign in to comment.