Lines Matching refs:path
72 Returns the path of the directory.
78 def write_file(self, path, content='xxx'):
79 """Writes a file in the given path.
82 path can be a string or a sequence.
84 if isinstance(path, (list, tuple)):
85 path = os.path.join(*path)
86 f = open(path, 'w')
103 pkg_dir = os.path.join(tmp_dir, pkg_name)
162 os.path.join(os.path.dirname(__file__), 'xxmodule.c'),
164 os.path.join(srcdir, 'Modules', 'xxmodule.c'),
168 os.path.join(srcdir, '..', '..', '..', 'Modules', 'xxmodule.c'),
170 for path in candidates:
171 if os.path.exists(path):
172 return path