Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Aug 29, 2023
1 parent e394c5c commit da1cd4d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions relenv/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@


def path_import(name, path):
spec = importlib.util.spec_from_file_location(
"relenv.common", path
)
"""
import module from a path
"""
spec = importlib.util.spec_from_file_location(name, path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
sys.modules[name] = module
Expand All @@ -46,6 +47,7 @@ def path_import(name, path):
relocate = path_import(
"relenv.relocate", str(pathlib.Path(__file__).parent / "relocate.py")
)

common = path_import("relenv.common", str(pathlib.Path(__file__).parent / "common.py"))


Expand Down

0 comments on commit da1cd4d

Please sign in to comment.