From: Jack Jansen Date: Thu, 3 Jun 2004 14:16:53 +0000 (+0000) Subject: Backport of 1.2: X-Git-Tag: v2.3.5c1~227 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d3446a1da3676dbbaa3f61cd94da37d2dee40f5;p=thirdparty%2FPython%2Fcpython.git Backport of 1.2: 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 70323f2d02de..6841433f429f 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); }