This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PythonLauncher-run scripts have funny $CWD
Type: Stage:
Components: macOS Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: jackjansen
Priority: normal Keywords:

Created on 2004-03-10 16:02 by jackjansen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg20191 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2004-03-10 16:02
PythonLauncher suffers from the general .app problem that it's 
working directory is "/". This affects scripts run with 
PythonLauncher without a terminal window: they inherit that home 
directory.

Scripts run with a terminal window get $HOME as working 
directory.

PythonLauncher should do something unified, best is probably to 
either always use $HOME, or to use the directory where the script 
is located.
msg20192 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2004-06-03 14:17
Logged In: YES 
user_id=45365

Fixed in PythonLauncher/main.m rev. 1.2 and 1.1.14.1, by doing a chdir() 
to $HOME on startup.
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40020
2004-03-10 16:02:05jackjansencreate