Skip to content

Python install manager and CWD #221

@TheConfax

Description

@TheConfax

Background

Python install manager installed via Windows Store, trying to launch a .py script by double clicking after uninstalling old python launcher.

Details

I expected the CWD to be the script's folder, instead i get C:\WINDOWS\System32, not reaching to the files of my script.
I am solving with os.chdir(Path(file).resolve().parent) but is this expected behavior? should I add that line to every script I make?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions