Lines Matching refs:path
227 def write_file(path, text):
228 with open(path, 'w', encoding='ASCII') as fp:
235 self.pkgname = os.path.join(self.longname)
236 self.subpkgname = os.path.join(self.longname, self.longname)
240 create_empty_file(os.path.join(self.pkgname, '__init__.py'))
243 create_empty_file(os.path.join(self.subpkgname, '__init__.py'))
246 sys.path.insert(0, self.here)
255 actions.append(os.path.join(dirpath, name))
260 if os.path.isdir(p):
264 del sys.path[0]
269 # a path separator + `longname` (twice)
271 # a path separator + `module_name` + ".py"
276 # Under Windows, the max path len is 260 including C's terminating
287 create_empty_file(os.path.join(self.subpkgname, self.pkgname + '.py'))
297 write_file(os.path.join(self.subpkgname, 'foo.py'), '''\
314 write_file(os.path.join(self.subpkgname, 'bar.py'), '''\
325 write_file(os.path.join(self.subpkgname, 'baz.py'), '''\
338 write_file(os.path.join(self.subpkgname, 'qux.py'), '''\