Lines Matching refs:os
43 import os
48 from os.path import join as joinpath
49 import os.path
50 import os
101 def require_file(path, fatal=False, mode=os.F_OK):
111 Python documentation for os.access().
114 if os.access(path, mode):
118 if not os.path.exists(path):
138 require_file(kvm_dev, fatal=fatal, mode=os.R_OK | os.W_OK)
157 tests_root = os.path.dirname(__file__)
158 test_progs = os.environ.get('M5_TEST_PROGS', '/dist/m5/regression/test-progs')
159 if not os.path.isdir(test_progs):
178 return joinpath(os.path.dirname(__file__), "..", path)
183 src_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))
194 os.chdir(src_root)
198 sys.path = [ os.path.dirname(abs_path), ] + sys.path