mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Got rid of the python.rsrc resource file. The error message strings and
dialogs are now stored in Mac/Lib, and loaded on demand through macresource. Not only does this simplify a MacPython based on Apple's Python, but it also makes Mac error codes come out symbolically when running command line python (if you have Mac/Lib in your path). The resource files are copied from Mac/Resources. The old ones will disappear after the OS9 build procedure has been adjusted.
This commit is contained in:
parent
430b1563dd
commit
dde800ec4e
7 changed files with 74 additions and 76 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue