Skip to content

Commit 3ec1160

Browse files
Merge pull request #703 from screamerbg/f/new-mbed2-programs
Fix mbed 2 library name when creating new program
2 parents d344702 + bc10118 commit 3ec1160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@ def new(name, scm='git', program=False, library=False, mbedlib=False, create_onl
19341934
d = 'mbed' if mbedlib else 'mbed-os'
19351935
try:
19361936
with cd(d_path):
1937-
add(url, depth=depth, protocol=protocol, top=False)
1937+
add(url, path=d, depth=depth, protocol=protocol, top=False)
19381938
except Exception as e:
19391939
if os.path.isdir(os.path.join(d_path, d)):
19401940
rmtree_readonly(os.path.join(d_path, d))

0 commit comments

Comments
 (0)