Lines Matching refs:pathname
110 def convert_path (pathname): argument
120 return pathname
121 if not pathname:
122 return pathname
123 if pathname[0] == '/':
124 raise ValueError, "path '%s' cannot be absolute" % pathname
125 if pathname[-1] == '/':
126 raise ValueError, "path '%s' cannot end with '/'" % pathname
128 paths = string.split(pathname, '/')
138 def change_root (new_root, pathname): argument
145 if not os.path.isabs(pathname):
146 return os.path.join(new_root, pathname)
148 return os.path.join(new_root, pathname[1:])
151 (drive, path) = os.path.splitdrive(pathname)
157 (drive, path) = os.path.splitdrive(pathname)