[Python-checkins] python/dist/src/Mac/Tools/IDE PythonIDEMain.py,1.22,1.23

jvr@users.sourceforge.net jvr@users.sourceforge.net
Sun, 20 Oct 2002 10:14:31 -0700


Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv539

Modified Files:
	PythonIDEMain.py 
Log Message:
cd to users home dir if no current dir has been set. Fixes bug #625734

Index: PythonIDEMain.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PythonIDEMain.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** PythonIDEMain.py	11 Sep 2002 22:05:59 -0000	1.22
--- PythonIDEMain.py	20 Oct 2002 17:14:28 -0000	1.23
***************
*** 44,47 ****
--- 44,52 ----
  		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.