diff --git a/examples/chef/chef.py b/examples/chef/chef.py index 2049da05e48656..6b2dce58d98669 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -57,6 +57,7 @@ def splash() -> None: """) print(splashText) +configFile = f"{_CHEF_SCRIPT_PATH}/config.yaml" def load_config() -> None: config = dict() @@ -64,7 +65,6 @@ def load_config() -> None: config["esp32"] = dict() config["silabs-thread"] = dict() - configFile = f"{_CHEF_SCRIPT_PATH}/config.yaml" if (os.path.exists(configFile)): configStream = open(configFile, 'r') config = yaml.load(configStream, Loader=yaml.SafeLoader) @@ -295,11 +295,14 @@ def main(argv: Sequence[str]) -> None: if device.endswith(target_file_ext): device_name = device[:-len(target_file_ext)] for platform, platform_meta in cd_platforms_meta.items(): + # shutil.rmitem(configFile) directory = platform_meta['build_dir'] label = platform_meta['platform_label'] output_dir = os.path.join(_CHEF_SCRIPT_PATH, directory) command = './chef.py -czbr -d {} -t {}'.format(device_name, options.build_target) + print('-' * 64) print(f"Building {command}") + print('-' * 64) subprocess.check_call(command, cwd=_CHEF_SCRIPT_PATH, shell=True) archive_name = f"{label}-chef-{device_name}-wifi-rpc" archive_full_name = archive_prefix + archive_name + archive_suffix