mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 02:15:10 +00:00 
			
		
		
		
	 d6904ea5a0
			
		
	
	
		d6904ea5a0
		
	
	
	
	
		
			
			allowing it to be run from anywhere, including through a symlink to the actual idle.py script.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			214 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			214 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
| #! /usr/bin/env python
 | |
| 
 | |
| import os
 | |
| import sys
 | |
| import IdleConf
 | |
| 
 | |
| idle_dir = os.path.dirname(IdleConf.__file__)
 | |
| IdleConf.load(idle_dir)
 | |
| 
 | |
| # defer importing Pyshell until IdleConf is loaded
 | |
| import PyShell
 | |
| PyShell.main()
 |