From: Jack Jansen Date: Thu, 3 Jun 2004 14:15:50 +0000 (+0000) Subject: On startup, attempt to set the working directory to $HOME. X-Git-Tag: v2.4a1~281 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76375745d552e9c0e70f541e8205a0677acbba26;p=python On startup, attempt to set the working directory to $HOME. Fixes #913581. --- diff --git a/Mac/OSX/PythonLauncher/main.m b/Mac/OSX/PythonLauncher/main.m index 70323f2d02..6841433f42 100755 --- a/Mac/OSX/PythonLauncher/main.m +++ b/Mac/OSX/PythonLauncher/main.m @@ -7,8 +7,11 @@ // #import +#include int main(int argc, const char *argv[]) { + char *home = getenv("HOME"); + if (home) chdir(home); return NSApplicationMain(argc, argv); }