Skip to content

os.environ is not inherited on Windows #527

@timfel

Description

@timfel

Simple test:

>>> import os, subprocess, sys
>>> os.environ["FOOBAR"] = "1"
>>> subprocess.run([sys.executable, "-c", "import os; print(os.environ['FOOBAR'])"])

This should print "1", but errors instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions