You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some people write code that assumes it's launched from the directory where the script is.
Debugging may be tricky, because a script that fails when launched from a shortcut might work when launched from the command prompt.
Against:
Applications shouldn't assume what their working directory is on launch.
Application developers can easily set the working directory in Python (os.chdir(os.path.dirname(sys.argv[0])) switches to the folder containing the script)