thank you, @billowy-army-68599. I assume this is in reply to the second question? (“do you check in your venv into source control?“)
b
billowy-army-68599
11/23/2022, 9:53 PM
Yep sorry
f
fierce-ability-58936
11/24/2022, 7:24 AM
I'm not sure if it's right but I have this in my
__main__.py
Copy code
"""Dynamic stack loader"""
import pulumi
name = pulumi.get_stack()
if name.startswith("common-"):
import stacks.common
# environment-specific module, same for each environment
else:
import stacks.environment
The environment stacks refer to one common environment (set in the config).
r
rhythmic-branch-12845
11/24/2022, 7:45 AM
oh I’m referring to the virtualenv used by the Pulumi project, and not Python code
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.