mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	If there's an environment variable PYTHONIDEPATH it points to the IDE
folder. This allows running the IDE from the source tree on OSX.
This commit is contained in:
		
							parent
							
								
									f94cadf456
								
							
						
					
					
						commit
						6be89564cc
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -21,7 +21,10 @@ def init(): | ||||||
| 	widgetrespathsegs = [sys.exec_prefix, "Mac", "Tools", "IDE", "Widgets.rsrc"] | 	widgetrespathsegs = [sys.exec_prefix, "Mac", "Tools", "IDE", "Widgets.rsrc"] | ||||||
| 	widgetresfile = os.path.join(*widgetrespathsegs) | 	widgetresfile = os.path.join(*widgetrespathsegs) | ||||||
| 	refno = macresource.need('CURS', 468, widgetresfile) | 	refno = macresource.need('CURS', 468, widgetresfile) | ||||||
| 	if refno: | 	if os.environ.has_key('PYTHONIDEPATH'): | ||||||
|  | 		# For development set this environment variable | ||||||
|  | 		ide_path = os.environ['PYTHONIDEPATH'] | ||||||
|  | 	elif refno: | ||||||
| 		# We're not a fullblown application | 		# We're not a fullblown application | ||||||
| 		idepathsegs = [sys.exec_prefix, "Mac", "Tools", "IDE"] | 		idepathsegs = [sys.exec_prefix, "Mac", "Tools", "IDE"] | ||||||
| 		ide_path = os.path.join(*idepathsegs) | 		ide_path = os.path.join(*idepathsegs) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen