Why Nostr? What is Njump?
2023-09-12 02:29:32

Brett Cannon on Nostr: Slightly odd question, but would people find it useful to have a function that ...

Slightly odd question, but would people find it useful to have a function that created a dict that you could `|` with `os.environ` to get the same environment changes that a virtual environment's activation script would do (sans prompt)?

I feel like I have been asked a couple of times now how to make `subprocess.run()` work like a virtual environment was activated, but I also feel like I might have temporal bias based on a question I got today.
Author Public Key
npub1fdqq95m3f5r5escjzr57v5yggphf7cs4gqgd5ykr882pkx9npussqc2uv4