From c25a5bbe41cf03d43468a2d72fb92ca1c0b6e6f5 Mon Sep 17 00:00:00 2001 From: Austin Bozowski Date: Wed, 25 May 2022 23:14:09 +0000 Subject: [PATCH] Minor --- examples/chef/chef.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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