Lines Matching refs:os

240 import os
463 if os.path.isdir(os.path.join("build", "lib.%s" % PLAT_SPEC)):
469 self.org_cwd = os.getcwd()
474 os.chdir("build")
476 self.cwd = os.getcwd()
477 sys.path.insert(0, os.path.join(self.cwd, self.libdir))
482 extra = os.path.join(self.org_cwd, libdir)
494 config_file = os.path.join('..', 'ftesting.zcml')
511 if not prefix.endswith(os.sep):
520 if os.path.split(dir)[1] != self.dirname:
524 path = os.path.join(dir, modfname)
540 if file.startswith('test') and os.path.splitext(file)[-1] == '.py':
541 path = os.path.join(dir, file)
547 pkg = dir[self._plen:].replace(os.sep, '.')
563 mod = path.replace(os.sep, ".")
573 names = os.listdir(top)
574 except os.error:
580 name = os.path.join(top, name)
581 if os.path.isdir(name):
585 if os.path.exists(dir):
587 d = os.path.join(pathinit.libdir, dir)
588 if os.path.exists(d):
589 if os.path.isdir(d):
660 utildir = os.path.join(os.getcwd(), "utilities")
662 utildir = os.path.join(os.getcwd(), "..", "utilities")
744 names = map(os.path.normcase, names)
749 fullname = os.path.join(dirname, name)
751 os.unlink(fullname)
755 os.path.walk(os.curdir, remove_stale_bytecode, None)
786 os.chdir(pathinit.org_cwd)
797 logini = os.path.abspath("log.ini")
799 if os.path.exists(logini):
804 if os.environ.has_key("LOGGING"):
805 level = int(os.environ["LOGGING"])
867 if os.path.isfile(config_filename):
897 os.environ["COMPLAIN_IF_TESTS_MISSED"]='1'
966 if not os.environ.get("PYCHECKER"):
967 os.environ["PYCHECKER"] = "-q"
1013 sts = os.system(cmd)
1065 coverdir = os.path.join(os.getcwd(), "coverage")
1075 path = "/tmp/trace.%s" % os.getpid()