mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	IDLE didn't start correctly when Python was installed in "Program Files"
on W2K and XP. Python Bugs 780451, 784183 Backported to 2.2-maint
This commit is contained in:
		
							parent
							
								
									8fd8def1fa
								
							
						
					
					
						commit
						b785518d05
					
				
					 2 changed files with 19 additions and 2 deletions
				
			
		|  | @ -1,3 +1,15 @@ | ||||||
|  | What's New in IDLE 1.0+? | ||||||
|  | =================================== | ||||||
|  | 
 | ||||||
|  | *Release date: XX-XXX-2003* | ||||||
|  | 
 | ||||||
|  | - IDLE didn't start correctly when Python was installed in "Program Files" on | ||||||
|  |   W2K and XP.  Python Bugs 780451, 784183 | ||||||
|  | 
 | ||||||
|  | - config-main.def documentation incorrectly referred to idle- instead of | ||||||
|  |   config-  filenames.  SF 782759  Also added note about .idlerc location. | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| What's New in IDLE 1.0? | What's New in IDLE 1.0? | ||||||
| =================================== | =================================== | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -318,7 +318,7 @@ def __init__(self, tkconsole): | ||||||
| 
 | 
 | ||||||
|     def spawn_subprocess(self): |     def spawn_subprocess(self): | ||||||
|         args = self.subprocess_arglist |         args = self.subprocess_arglist | ||||||
|         self.rpcpid = os.spawnv(os.P_NOWAIT, args[0], args) |         self.rpcpid = os.spawnv(os.P_NOWAIT, sys.executable, args) | ||||||
| 
 | 
 | ||||||
|     def build_subprocess_arglist(self): |     def build_subprocess_arglist(self): | ||||||
|         w = ['-W' + s for s in sys.warnoptions] |         w = ['-W' + s for s in sys.warnoptions] | ||||||
|  | @ -331,7 +331,12 @@ def build_subprocess_arglist(self): | ||||||
|             command = "__import__('idlelib.run').run.main(" + `del_exitf` +")" |             command = "__import__('idlelib.run').run.main(" + `del_exitf` +")" | ||||||
|         else: |         else: | ||||||
|             command = "__import__('run').main(" + `del_exitf` + ")" |             command = "__import__('run').main(" + `del_exitf` + ")" | ||||||
|         return [sys.executable] + w + ["-c", command, str(self.port)] |         if sys.platform[:3] == 'win' and ' ' in sys.executable: | ||||||
|  |             # handle embedded space in path by quoting the argument | ||||||
|  |             decorated_exec = '"%s"' % sys.executable | ||||||
|  |         else: | ||||||
|  |             decorated_exec = sys.executable | ||||||
|  |         return [decorated_exec] + w + ["-c", command, str(self.port)] | ||||||
| 
 | 
 | ||||||
|     def start_subprocess(self): |     def start_subprocess(self): | ||||||
|         addr = (LOCALHOST, self.port) |         addr = (LOCALHOST, self.port) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kurt B. Kaiser
						Kurt B. Kaiser