mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	open res file(s) read only; upped __version__ -- jvr
This commit is contained in:
		
							parent
							
								
									43b34da656
								
							
						
					
					
						commit
						96b64d0675
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -3,7 +3,7 @@ | ||||||
| # keep this (__main__) as clean as possible, since we are using  | # keep this (__main__) as clean as possible, since we are using  | ||||||
| # it like the "normal" interpreter. | # it like the "normal" interpreter. | ||||||
| 
 | 
 | ||||||
| __version__ = '1.0b2' | __version__ = '1.0b3' | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def init(): | def init(): | ||||||
|  | @ -18,15 +18,15 @@ def init(): | ||||||
| 		Res.GetResource('DITL', 468) | 		Res.GetResource('DITL', 468) | ||||||
| 	except Res.Error: | 	except Res.Error: | ||||||
| 		# we're not an applet | 		# we're not an applet | ||||||
| 		Res.OpenResFile(os.path.join(sys.exec_prefix, ":Mac:Tools:IDE:PythonIDE.rsrc")) | 		Res.FSpOpenResFile(os.path.join(sys.exec_prefix, ":Mac:Tools:IDE:PythonIDE.rsrc"), 1) | ||||||
| 		Res.OpenResFile(os.path.join(sys.exec_prefix, ":Mac:Tools:IDE:Widgets.rsrc")) | 		Res.FSpOpenResFile(os.path.join(sys.exec_prefix, ":Mac:Tools:IDE:Widgets.rsrc"), 1) | ||||||
| 		ide_path = os.path.join(sys.exec_prefix, ":Mac:Tools:IDE") | 		ide_path = os.path.join(sys.exec_prefix, ":Mac:Tools:IDE") | ||||||
| 	else: | 	else: | ||||||
| 		# we're an applet | 		# we're an applet | ||||||
| 		try: | 		try: | ||||||
| 			Res.GetResource('CURS', 468) | 			Res.GetResource('CURS', 468) | ||||||
| 		except Res.Error: | 		except Res.Error: | ||||||
| 			Res.OpenResFile(os.path.join(sys.exec_prefix, ":Mac:Tools:IDE:Widgets.rsrc")) | 			Res.FSpOpenResFile(os.path.join(sys.exec_prefix, ":Mac:Tools:IDE:Widgets.rsrc"), 1) | ||||||
| 			ide_path = os.path.join(sys.exec_prefix, ":Mac:Tools:IDE") | 			ide_path = os.path.join(sys.exec_prefix, ":Mac:Tools:IDE") | ||||||
| 		else: | 		else: | ||||||
| 			# we're a full blown applet | 			# we're a full blown applet | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Just van Rossum
						Just van Rossum