Skip to content

Commit 9626ef3

Browse files
authored
Merge pull request #2187 from 0xc0170/fix_issue2184
project - zip and src check if empty fix
2 parents 3ea625c + bf2ad16 commit 9626ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136
p, src, ide = options.program, options.source_dir, options.ide
137137
project_dir, project_name, project_temp = setup_project(mcu, ide, p, src, options.build)
138138

139-
zip = src is [] # create zip when no src_dir provided
140-
clean = src is [] # don't clean when source is provided, use acrual source tree for IDE files
139+
zip = not bool(src) # create zip when no src_dir provided
140+
clean = not bool(src) # don't clean when source is provided, use acrual source tree for IDE files
141141

142142
# Export to selected toolchain
143143
lib_symbols = get_lib_symbols(options.macros, src, p)

0 commit comments

Comments
 (0)