diff Mac/Tools/IDE/PythonIDEMain.py @ 25869:2bcb41611fae legacy-trunk

cd to users home dir if no current dir has been set. Fixes bug #625734
author Just van Rossum <just@letterror.com>
date Sun, 20 Oct 2002 17:14:28 +0000
parents e709a3c8bfec
children 547de407c133
line wrap: on
line diff
--- a/Mac/Tools/IDE/PythonIDEMain.py	Sat Oct 19 22:02:21 2002 +0000
+++ b/Mac/Tools/IDE/PythonIDEMain.py	Sun Oct 20 17:14:28 2002 +0000
@@ -43,6 +43,11 @@
 				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