project root add to managepy

This commit is contained in:
RNL
2026-02-18 23:31:19 +11:00
parent aee1615d36
commit 5983d80293

View File

@@ -3,6 +3,10 @@
import os
import sys
# Ensure the project root (/app) is on sys.path so that both 'standalone'
# and 'bambu_run' are importable regardless of where this script is invoked from.
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "standalone.settings")