Lines Matching refs:os
17 import os
46 if (os.path.isabs(program) and os.path.isfile(program) and
47 os.access(program, os.X_OK)):
51 locations = os.environ.get("PATH").split(os.pathsep)
53 candidate = os.path.join(location, program)
54 if os.path.isfile(candidate) and os.access(candidate, os.X_OK):
66 dirname = os.path.dirname(filename)
67 if not os.path.exists(dirname):
68 os.makedirs(dirname)
75 filename = os.path.abspath(filename)[1:]
76 home_folder = os.path.expanduser('~')
77 base_cache_dir = os.path.join(home_folder, '.git-lint', 'cache')
79 return os.path.join(base_cache_dir, name, filename)
96 if (os.path.exists(cache_filename) and
97 os.path.getmtime(filename) < os.path.getmtime(cache_filename)):