Lines Matching refs:os
29 import os
104 if os.path.exists(file_name):
125 if os.path.exists(file_name):
144 if os.path.exists(file_name):
159 if os.path.exists(file_name):
174 if os.path.exists('cpu.csv'):
348 if os.path.exists('cpu.csv'):
351 os.system('grep -m 1 common_cpu cpu.csv > cpu{:0>3}.csv'.format(index))
352 os.system('grep CPU_{:0>3} cpu.csv >> cpu{:0>3}.csv'.format(index, index))
357 uid = os.environ.get('SUDO_UID')
358 gid = os.environ.get('SUDO_GID')
360 os.chown(path, int(uid), int(gid))
365 if os.path.exists('cpu.csv'):
366 os.remove('cpu.csv')
524 location = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
525 filename = os.path.join(location, arg)
549 if not os.path.exists('results'):
550 os.mkdir('results')
554 os.chdir('results')
555 if os.path.exists(testname):
558 os.mkdir(testname)
561 os.chdir(testname)
609 for root, dirs, files in os.walk('.'):
613 os.chdir('../../')