Lines Matching refs:os
4 import os
58 if not os.path.exists(dst_dir):
59 os.makedirs(dst_dir)
64 split_name = os.path.splitext(filename)
67 with open(os.path.join(src_dir, filename)) as in_file:
68 with open(os.path.join(dst_dir, out_filename), 'w') as out_file:
80 for root, dirs, files in os.walk(src_dir, followlinks=True):
81 relroot = os.path.relpath(root,src_dir)
94 outroot = os.path.join(dest_dir, relroot)
117 if not os.path.exists(build_dir):
118 os.makedirs(build_dir)
122 working_dir=os.getcwd()
124 os.chdir(build_dir)
135 os.chdir(working_dir)
138 basename, suffix = os.path.splitext(header_name)
147 basename, suffix = os.path.splitext(header_name)
148 with open(os.path.join('osx/include', header_name), 'w') as header: