From 1988bc953e07c3df38a2e2494120640a27cb0b05 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 7 Dec 2023 15:52:14 +0700 Subject: [PATCH] Update gen_release.py --- gen_release.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gen_release.py b/gen_release.py index 0791e79..24fa03b 100644 --- a/gen_release.py +++ b/gen_release.py @@ -19,6 +19,10 @@ current_dir = os.path.dirname(os.path.abspath(__file__)) # Define the path to the firmware folder firmware_folder = os.path.join(current_dir, 'firmware') +# Create the firmware folder if it does not exist +if not os.path.exists(firmware_folder): + os.makedirs(firmware_folder) + # Define the path to the release folder release_folder = os.path.join(current_dir, 'release')