Skip to content

Commit 8a6cf64

Browse files
committed
fix bin/tools.py resolution
1 parent 0ddb822 commit 8a6cf64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
from pathlib import Path
66

77
if __name__ == "__main__":
8-
sys.path.append(str(Path(__file__).parent.parent.resolve()))
8+
# Add repository root to python path so that bapctools is importable. Notably, we need to
9+
# resolve __file__ as it would otherwise refer to the location of the symlink used to invoke
10+
# this script.
11+
sys.path.append(str(Path(__file__).resolve().parents[1]))
912

1013
from bapctools.cli import main
1114

0 commit comments

Comments
 (0)