Skip to content

Commit 26c7467

Browse files
committed
Add an __init__.py in repo root to prevent import confusion
1 parent 981688c commit 26c7467

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from pathlib import Path
2+
3+
4+
repo_root = Path(__file__).parent
5+
6+
raise RuntimeError(
7+
f"Python is looking for PyTensor in {repo_root}, but it's "
8+
f"actually located in {repo_root / 'pytensor'}. Probably "
9+
f"you need to change your working directory from {Path.cwd()} "
10+
f"to {repo_root}."
11+
)

0 commit comments

Comments
 (0)