Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
Add makefile path as Python path
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed May 4, 2020
1 parent 76775bd commit c8882c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rkd/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def _load_context_from_directory(path: str) -> Context:
raise Exception('makefile.py not found at path "%s"' % makefile_path)

try:
sys.path.append(path)
makefile = SourceFileLoader("Makefile", makefile_path).load_module()

except ImportError as e:
print_exc()
print("\n==> Your Makefile contains a reference to not available or not installed Python module")
Expand Down

0 comments on commit c8882c5

Please sign in to comment.