Skip to content

Commit 3939d7f

Browse files
committed
fix compiler error for build directory not existing
1 parent 5bce0fe commit 3939d7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builder/esp32.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ def get_partition_file_name(otp):
4040
class Partition:
4141

4242
def __init__(self):
43+
if not os.path.exists('build'):
44+
os.mkdir('build')
45+
4346
self.save_file_path = f'"{SCRIPT_DIR}/build/partitions-{flash_size}MiB.csv"'
4447
self.first_offset = 0x9000
4548
self.nvs = 0x6000

0 commit comments

Comments
 (0)