mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Use the new macresource module to open the accompanying resource file (if needed).
This commit is contained in:
		
							parent
							
								
									a5d7da528b
								
							
						
					
					
						commit
						3c06b9a7d4
					
				
					 13 changed files with 37 additions and 102 deletions
				
			
		|  | @ -19,6 +19,7 @@ | |||
| import re | ||||
| import string | ||||
| import genpluginprojects | ||||
| import macresource | ||||
| 
 | ||||
| import aetools | ||||
| from Carbon import AppleEvents | ||||
|  | @ -369,11 +370,7 @@ def incbuildno(filename): | |||
| 	fp.close() | ||||
| 				 | ||||
| def main(): | ||||
| 	try: | ||||
| 		h = Res.FSpOpenResFile('fullbuild.rsrc', 1) | ||||
| 	except Res.Error: | ||||
| 		pass	# Assume we already have acces to our own resource | ||||
| 
 | ||||
| 	macresource.need('DLOG', DIALOG_ID, 'fullbuild.rsrc') | ||||
| 	dir, ok = macfs.GetDirectory('Python source folder:') | ||||
| 	if not ok: | ||||
| 		sys.exit(0) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen