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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76375745d552e9c0e70f541e8205a0677acbba26;p=thirdparty%2FPython%2Fcpython.git 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); }