mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	cd to users home dir if no current dir has been set. Fixes bug #625734
This commit is contained in:
		
							parent
							
								
									8fce2ef84c
								
							
						
					
					
						commit
						7aa7f2eb0d
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -43,6 +43,11 @@ def __init__(self): | ||||||
| 				self.quitevent) | 				self.quitevent) | ||||||
| 		import PyConsole, PyEdit | 		import PyConsole, PyEdit | ||||||
| 		Splash.wait() | 		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 | 		# With -D option (OSX command line only) keep stderr, for debugging the IDE | ||||||
| 		# itself. | 		# itself. | ||||||
| 		debug_stderr = None | 		debug_stderr = None | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Just van Rossum
						Just van Rossum