broad-doctor-1842110/19/2023, 2:18 PM
, and Mono repo's, with
from component folders... what a mouthful! It doesn't seem to work. There is some talk on github issues but it doesn't seem like this works.
and in infra:
./src |_./lib/__init__.py |_./lib/autotag.py |_./infra/__main__.py
we get an error with
from lib.autotag import register_auto_tags
cd infra; pulumi up
This could be more of a python thing but as mono repos are one recommended repo structure, I thought someone might have insight here?
ModuleNotFoundError: No module named 'lib'
It looks to me like that’s not the right import path
./src |_./infra/__main__.py |_./infra/lib/__init__.py |_./infra/lib/autotag.py
broad-doctor-1842110/19/2023, 2:22 PM
./vpc/ ./app1/ ./app2/ ./components/auto_scaling/... ./components/eventing/...
in that case
import sys sys.path.append("..")
broad-doctor-1842110/19/2023, 2:26 PM