Skip to content

Commit e064a37

Browse files
chore: add root main.py for Railpack auto-detection
Railpack requires main.py or app.py at the project root to detect the start command. Adds a thin wrapper that sets PYTHONPATH for the src layout and delegates to pr_af.app:main.
1 parent 92c22ca commit e064a37

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import sys
2+
from pathlib import Path
3+
4+
sys.path.insert(0, str(Path(__file__).parent / "src"))
5+
6+
from pr_af.app import main
7+
8+
if __name__ == "__main__":
9+
main()

0 commit comments

Comments
 (0)