Commit be7a87eb authored by Just van Rossum's avatar Just van Rossum

cd to users home dir if no current dir has been set. Fixes bug #625734

parent e1f7b0a1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment