Re-raise the Res.Error if the file doesn't exist.

This commit is contained in:
Jack Jansen 2002-03-29 21:17:57 +00:00
parent 2cce33f3bd
commit d21c9f48fa
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ def open_pathname(pathname):
# Finally try decoding an AppleSingle file
pathname = _decode(pathname)
refno = Res.FSOpenResourceFile(pathname, u'', 1)
else:
raise
return refno
def _decode(pathname):