diff --git a/.github/build_examples.py b/.github/build_examples.py index ce75169..0748909 100644 --- a/.github/build_examples.py +++ b/.github/build_examples.py @@ -5,7 +5,7 @@ for example in os.listdir("examples"): print("Use PIO to build %s" % (example)) - pio_cmd = "pio run -d examples/%s" + pio_cmd = "pio run -d examples/%s" %(example) print(pio_cmd) ret = os.system(pio_cmd) if ret != 0: diff --git a/.github/prepare_tools.py b/.github/prepare_tools.py index a648370..eae85d5 100644 --- a/.github/prepare_tools.py +++ b/.github/prepare_tools.py @@ -132,7 +132,7 @@ def install_pio_packages(nsdk_url="https://github.com/Nuclei-Software/nuclei-sdk os.system("pio pkg install -g -p symlink://%s" % (os.getcwd())) pass -def main(): +if __name__ == '__main__': parser = argparse.ArgumentParser(description='Prepare Nuclei Tools and Install PIO Packages.') parser.add_argument('--sdk', "-s", required=True, default="https://github.com/Nuclei-Software/nuclei-sdk#feature/gd32vw55x", help='URL or PATH of Nuclei SDK')