diff options
Diffstat (limited to 'Mac/Tools/IDE/PyBrowser.py')
-rw-r--r-- | Mac/Tools/IDE/PyBrowser.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/PyBrowser.py b/Mac/Tools/IDE/PyBrowser.py index d81c46f..19ddbef 100644 --- a/Mac/Tools/IDE/PyBrowser.py +++ b/Mac/Tools/IDE/PyBrowser.py @@ -322,9 +322,7 @@ class BrowserWidget(W.CustomList): 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, |