Lines Matching refs:os
29 import os
46 sys.path.insert(1, os.path.join(os.path.dirname(__file__), "..", "lib",
53 sys.path.insert(2, os.path.join(os.path.dirname(__file__), ".."))
99 return os.path.abspath(os.path.join(dir, os.path.pardir))
171 ignorefiles = list(filter(os.path.exists,
172 [os.path.join(root, ".git", "%s.NOT" % cmd),
173 os.path.join(root, "exception_lists", cmd)]))
181 # Taken entirely from Python 2.6's os.path.relpath which we would use if we
184 c = os.path.abspath(os.path.join(root, path)).split(os.path.sep)
185 s = os.path.abspath(here).split(os.path.sep)
186 l = len(os.path.commonprefix((s, c)))
187 return os.path.join(*[os.path.pardir] * (len(s)-l) + c[l:])
195 if (os.path.exists(f) and select(f) and not exclude(f)):
354 main(os.path.basename(sys.argv[0]), sys.argv[1:])