This message was deleted.
s
This message was deleted.
w
What exactly did you want to get from this file? We don't directly provide that data through an API today - though you can read the file yourself if you need it. Would be very interested in the use case to understand what API would possibly make sense here.
b
In my case I wanted to run an external command and I wanted to know the location of Python's virtual env
w
I expect there is a way to ask Python to tell you what
venv
it is running in? If so, that would be another solution independent of opening and parsing the
Pulumi.yaml
yourself.
b
This works
os.path.dirname(sys.executable)
. Fortunately I don't need this anymore and can stay on Pulumi code alone. But thanks for the idea!