Home | History | Annotate | Download | only in plat-mac

Lines Matching refs:pathname

62         pathname = os.path.join(dir, filename)
63 if os.path.exists(pathname):
68 refno = open_pathname(pathname)
77 def open_pathname(pathname, verbose=0):
78 """Open a resource file given by pathname, possibly decoding an
84 refno = Res.FSOpenResourceFile(pathname, u'', 1)
92 pathname = _decode(pathname, verbose=verbose)
93 refno = Res.FSOpenResourceFile(pathname, u'', 1)
95 def resource_pathname(pathname, verbose=0):
96 """Return the pathname for a resource file (either DF or RF based).
97 If the pathname given already refers to such a file simply return it,
103 refno = Res.FSOpenResourceFile(pathname, u'', 1)
111 pathname = _decode(pathname, verbose=verbose)
112 return pathname
119 def _decode(pathname, verbose=0):
120 # Decode an AppleSingle resource file, return the new pathname.
121 newpathname = pathname + '.df.rsrc'
123 os.stat(newpathname).st_mtime >= os.stat(pathname).st_mtime:
126 os.access(os.path.dirname(pathname), os.W_OK|os.X_OK):
132 print 'Decoding', pathname, 'to', newpathname
134 applesingle.decode(pathname, newpathname, resonly=1)