summaryrefslogtreecommitdiff
path: root/Mac/Lib/macresource.py
Commit message (Collapse)AuthorAgeFilesLines
* Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used bothJack Jansen2002-12-301-115/+0
| | | | | | | in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on Mac OS X). The only items remaining in Mac/Lib are modules that are meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences in resources, etc).
* Got rid of the python.rsrc resource file. The error message strings andJack Jansen2002-11-071-0/+5
| | | | | | | | | | 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.
* - Check not only that cache file exists, but also that it is newer thanJack Jansen2002-08-091-4/+7
| | | | | the applesingle file. - Added optional verbose option for cachersrc tool.
* Re-raise the Res.Error if the file doesn't exist.Jack Jansen2002-03-291-0/+2
|
* If the file has no resource fork first check to see whether it's aJack Jansen2002-03-291-5/+12
| | | | datafork-based resource file before trying to decode it as AppleSingle.
* Added an open_pathname() method which opens a resource file by pathname,Jack Jansen2002-03-211-7/+12
| | | | possibly converting from AppleSingle.
* Fixed to work under MachoPython, doing the expected unpacking for ↵Jack Jansen2002-01-131-2/+24
| | | | applesingle files. The IDE still doesn't work, though, because it uses :-style pathnames.
* We should look in the directory containing the module, not in the module ↵Jack Jansen2001-08-301-1/+1
| | | | itself, when we're looking for the resource file.
* need() now returns the refno of the resource file opened, or None if theJack Jansen2001-08-271-4/+7
| | | | specified resource was already available and no file was opened.
* Module to help other modules locate their resources. It currently knows aboutJack Jansen2001-08-271-0/+68
resources in applets and separate OS9 style resource files, but it will eventually also be thought the hoops to jump through on OSX/MachO.