Skip to content

Why does having a matching .py file on my PYTHONPATH cause gui_scripts to do nothing? #3694

Answered by abravalheri
PySimpleGUI asked this question in Q&A
Discussion options

You must be logged in to vote

I believe this is expected due to the way Python works: in a regular invocation with no special flags, Python will always place the CWD in front of the other directories in sys.path.

pip will create a wrapper for the entry-points that imports the package according to the current state of sys.path.

If the local PySimpleGUI.py has problems, then the script will also have problems.

--- EDIT ---

See details in #3694 (reply in thread)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by abravalheri
Comment options

You must be logged in to vote
1 reply
@abravalheri
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants