]> granicus.if.org Git - python/commitdiff
cd to users home dir if no current dir has been set. Fixes bug #625734
authorJust van Rossum <just@letterror.com>
Sun, 20 Oct 2002 17:14:28 +0000 (17:14 +0000)
committerJust van Rossum <just@letterror.com>
Sun, 20 Oct 2002 17:14:28 +0000 (17:14 +0000)
Mac/Tools/IDE/PythonIDEMain.py

index fb02100be7b5521bfb2960ea675e5b5446c1f27e..44fea3c0823eb691d7983c73f2978d31f1597703 100644 (file)
@@ -43,6 +43,11 @@ class PythonIDE(Wapplication.Application):
                                self.quitevent)
                import PyConsole, PyEdit
                Splash.wait()
+               if sys.platform == "darwin":
+                       if sys.argv and sys.argv[0].startswith("-psn"):
+                               home = os.getenv("HOME")
+                               if home:
+                                       os.chdir(home)
                # With -D option (OSX command line only) keep stderr, for debugging the IDE
                # itself.
                debug_stderr = None