38 Package
- Python PKG User Guide
- PKG layout (from setuptools)
38.1 Change WD of a script
.
├── dev
│ ├── child.qmd
│ ├── design.qmd
│ └── test.qmd
└── src
├── peddesign
│ ├── __init__.py
│ ├── __pycache__
│ ├── _child.py
│ ├── ct.py
│ └── main.py
In test.qmd
change working dir to inside src/
import sys
1, '../src')
sys.path.insert(print(sys.path)
import peddesign as pd
38.2 Package Structure
In __init__.py
# Export User-facing function:
from .main import design_ct
from .ct import design_chest, design_whole_abd, design_chest_whole_abd, design_cta_liver