Lines Matching refs:sep

47     return path.replace(os.sep, '.')
98 if path[-1] == os.sep:
238 packdir = TESTPACK + os.sep
246 packdir = TESTPACK + os.sep
247 packdir2 = packdir + TESTPACK2 + os.sep
256 packdir = TESTPACK + os.sep
257 packdir2 = packdir + TESTPACK2 + os.sep
267 packdir = TESTPACK + os.sep
268 packdir2 = packdir + TESTPACK2 + os.sep
269 packdir3 = packdir2 + TESTPACK + '3' + os.sep
300 self.assertEqual(os.path.basename(TEMP_DIR), p1.split(os.sep)[-2])
301 self.assertEqual("path1.zip", p2.split(os.sep)[-2])
305 mod = importlib.import_module(packdir3.replace(os.sep, '.')[:-1])
307 mpath = list(mod.__path__)[0].split('path1.zip' + os.sep)[1]
312 self.assertEqual("path1.zip", mod.__file__.split(os.sep)[-3])
317 mod.__file__.split(os.sep)[-3])
324 self.assertEqual(os.path.basename(TEMP_DIR), p1.split(os.sep)[-3])
325 self.assertEqual("path1.zip", p2.split(os.sep)[-3])
330 mod.__file__.split(os.sep)[-4])
335 mod.__file__.split(os.sep)[-4])
339 self.assertEqual('path1.zip', mod.__file__.split(os.sep)[-4])
344 packdir = TESTPACK + os.sep
345 packdir2 = packdir + TESTPACK2 + os.sep
346 packdir3 = packdir2 + TESTPACK + '3' + os.sep
376 self.assertEqual("path2.zip", p1.split(os.sep)[-2])
377 self.assertEqual("path1.zip", p2.split(os.sep)[-2])
381 mod = importlib.import_module(packdir3.replace(os.sep, '.')[:-1])
383 mpath = list(mod.__path__)[0].split('path1.zip' + os.sep)[1]
388 self.assertEqual("path1.zip", mod.__file__.split(os.sep)[-3])
392 self.assertEqual("path2.zip", mod.__file__.split(os.sep)[-3])
399 self.assertEqual("path2.zip", p1.split(os.sep)[-3])
400 self.assertEqual("path1.zip", p2.split(os.sep)[-3])
404 self.assertEqual('path2.zip', mod.__file__.split(os.sep)[-4])
408 self.assertEqual('path2.zip', mod.__file__.split(os.sep)[-4])
412 self.assertEqual('path1.zip', mod.__file__.split(os.sep)[-4])
415 packdir = TESTPACK + os.sep
416 packdir2 = packdir + TESTPACK2 + os.sep
467 zi2 = zipimport.zipimporter(TEMP_ZIP + os.sep + TESTPACK)
469 self.assertEqual(zi2.prefix, TESTPACK + os.sep)
475 packdir = TESTPACK + os.sep
476 packdir2 = packdir + TESTPACK2 + os.sep
489 zi = zipimport.zipimporter(TEMP_ZIP + os.sep + packdir)
497 zi.is_package(TESTPACK2 + os.sep + '__init__'), False)
499 zi.is_package(TESTPACK2 + os.sep + TESTMOD), False)
501 pkg_path = TEMP_ZIP + os.sep + packdir + TESTPACK2
511 mod_path = TESTPACK2 + os.sep + TESTMOD