Lines Matching refs:os
3 import os
19 search_path = os.getenv('PATH', os.defpath).split(os.pathsep)
22 path = os.path.join(directory, name)
24 if os.path.isfile(path) and os.access(path, os.X_OK):
39 zf = zipfile.ZipFile(os.path.dirname(__file__))
56 top_entries = [os.path.join(runfiles_path, i) for i in os.listdir(runfiles_path)]
57 top_pkg_dirs = [i for i in top_entries if os.path.isdir(i)]
60 old_python_path = os.environ.get(PYTHON_PATH)
70 main_filepath = os.path.join(runfiles_path, MAIN_FILE)
71 assert os.path.exists(main_filepath), \
73 assert os.access(main_filepath, os.R_OK), \
81 os.environ.update(new_env)