average-article-76176
03/16/2022, 5:23 PM__main__.py
simply imports other modules and the project contains other modules still. However, Pulumi seems to require all the __init__.py
to import modules, or else Pulumi doesn't import them.
Is this correct?
I need to explicitly import all modules and packages in each package's __init__.py
?
If so, is there a better / more standardized way?stocky-wire-60053
03/17/2022, 4:12 PMpyscaffold
to set up your project -- it tends to put everything in the correct place and generally takes care of most people's import issues.numerous-state-84361
03/21/2022, 3:40 PMpython
item and not pulumi
. If the other modules exists in other directories, then those directories must have an ___init.py___
file. This is what tells python it is a package/module.