diff options
Diffstat (limited to 'Mac/Lib/macresource.py')
-rw-r--r-- | Mac/Lib/macresource.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mac/Lib/macresource.py b/Mac/Lib/macresource.py index 3a1161b..26f90940 100644 --- a/Mac/Lib/macresource.py +++ b/Mac/Lib/macresource.py @@ -95,6 +95,11 @@ def open_pathname(pathname, verbose=0): raise return refno +def open_error_resource(): + """Open the resource file containing the error code to error message + mapping.""" + need('Estr', 1, filename="errors.rsrc", modname=__name__) + def _decode(pathname, verbose=0): # Decode an AppleSingle resource file, return the new pathname. newpathname = pathname + '.df.rsrc' |