mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Adapted to os and imp changes
This commit is contained in:
		
							parent
							
								
									d40f3c60ca
								
							
						
					
					
						commit
						316ba5d2da
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -50,7 +50,7 @@ def help(): | ||||||
| 	import imp | 	import imp | ||||||
| 	cwd = os.getcwd() | 	cwd = os.getcwd() | ||||||
| 	tblibname = os.path.join(cwd, "toolboxmodules.slb") | 	tblibname = os.path.join(cwd, "toolboxmodules.slb") | ||||||
| 	if not os.exists(tblibname): | 	if not os.path.exists(tblibname): | ||||||
| 		print """ | 		print """ | ||||||
| I cannot find the 'toolboxmodules.slb' file in the PlugIns directory. | I cannot find the 'toolboxmodules.slb' file in the PlugIns directory. | ||||||
| Start afresh from a clean distribution.  | Start afresh from a clean distribution.  | ||||||
|  | @ -58,7 +58,7 @@ def help(): | ||||||
| 		sys.exit(1) | 		sys.exit(1) | ||||||
| 	try: | 	try: | ||||||
| 		for wtd in ["Ctl", "Dlg", "Evt", "Qd", "Res", "Win"]: | 		for wtd in ["Ctl", "Dlg", "Evt", "Qd", "Res", "Win"]: | ||||||
| 			imp.load_dynamic_module(wtd, tblibname, None) | 			imp.load_dynamic(wtd, tblibname) | ||||||
| 	except ImportError: | 	except ImportError: | ||||||
| 		print """ | 		print """ | ||||||
| I cannot load the toolbox modules by hand. Are you sure you are | I cannot load the toolbox modules by hand. Are you sure you are | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen