diff Mac/Tools/IDE/PyBrowser.py @ 27737:4367f805db09 legacy-trunk

Got rid of macfs and FSSpecs in general (pathnames or FSRefs are now used everywhere).
author Jack Jansen <jack.jansen@cwi.nl>
date Thu, 06 Feb 2003 22:32:35 +0000
parents 0ff47362bb81
children 50173ea1fd44
line wrap: on
line diff
--- a/Mac/Tools/IDE/PyBrowser.py	Thu Feb 06 21:25:12 2003 +0000
+++ b/Mac/Tools/IDE/PyBrowser.py	Thu Feb 06 22:32:35 2003 +0000
@@ -322,9 +322,7 @@
 					editor.select()
 					return
 				elif os.path.exists(value) and os.path.isfile(value):
-					import macfs
-					fss = macfs.FSSpec(value)
-					if fss.GetCreatorType()[1] == 'TEXT':
+					if MacOS.GetCreatorAndType(value)[1] in ('TEXT', '\0\0\0\0'):
 						W.getapplication().openscript(value)
 	
 	def itemrepr(self, (key, value, arrow, indent), str = str, double_repr = double_repr,