Lines Matching full: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'):
350 if os.path.exists('cpu.csv'):
353 os.system('grep -m 1 common_cpu cpu.csv > cpu{:0>3}.csv'.format(index))
354 os.system('grep CPU_{:0>3} cpu.csv >> cpu{:0>3}.csv'.format(index, index))
359 uid = os.environ.get('SUDO_UID')
360 gid = os.environ.get('SUDO_GID')
362 os.chown(path, int(uid), int(gid))
367 if os.path.exists('cpu.csv'):
368 os.remove('cpu.csv')
526 location = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
527 filename = os.path.join(location, arg)
551 if not os.path.exists('results'):
552 os.mkdir('results')
556 os.chdir('results')
557 if os.path.exists(testname):
560 os.mkdir(testname)
563 os.chdir(testname)
611 for root, dirs, files in os.walk('.'):
615 os.chdir('../../')