Lines Matching refs:os

3 import os
4 import os.path
9 def action_extensions(base_actions, project_path=os.getcwd()):
18 CONFIG_NAMES = os.listdir(os.path.join(project_path, 'configs'))
21 BUILDS_DIR = os.path.join(project_path, 'builds')
22 BINARIES_DIR = os.path.join(project_path, 'output')
52 sdkconfig_path = os.path.join(args.project_dir, 'sdkconfig')
56 sdkconfig_path = os.path.abspath(sdkconfig_path)
59 os.remove(sdkconfig_path)
65 config_path = os.path.join(project_path, 'configs', config_name)
80 …new_cache_values['SDKCONFIG_DEFAULTS'] = ';'.join([os.path.join(project_path, 'sdkconfig.defaults'…
99 build_args.build_dir = os.path.join(BUILDS_DIR, config_name)
101 src = os.path.join(BUILDS_DIR, config_name)
102 dest = os.path.join(BINARIES_DIR, config_name)
105 os.makedirs(dest)
118 os.path.join(build_args.project_dir, 'sdkconfig'),
119 os.path.join(dest, 'sdkconfig'),
125 shutil.copyfile(os.path.join(src, binary), os.path.join(dest, binary))
128 os.mkdir(os.path.join(dest, 'bootloader'))
133 os.path.join(src, 'bootloader', 'bootloader.bin'),
134 os.path.join(dest, 'bootloader', 'bootloader.bin'),
137 … for partition_table in glob.glob(os.path.join(src, 'partition_table', 'partition-table*.bin')):
139 os.mkdir(os.path.join(dest, 'partition_table'))
144 os.path.join(dest, 'partition_table', os.path.basename(partition_table)),
148 os.path.join(src, 'flasher_args.json'),
149 os.path.join(dest, 'flasher_args.json'),
152 binaries = glob.glob(os.path.join(src, '*.bin'))
153 binaries = [os.path.basename(s) for s in binaries]
156 shutil.copyfile(os.path.join(src, binary), os.path.join(dest, binary))
161 shutil.rmtree(os.path.join(BUILDS_DIR, config_name), ignore_errors=True)
162 shutil.rmtree(os.path.join(BINARIES_DIR, config_name), ignore_errors=True)