Skip to content

Commit c4fa076

Browse files
Merge pull request #555 from janjongboom/standalone
Fall back to python when exec name starts with mbed
2 parents 269d34f + 406f31b commit c4fa076

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mbed/mbed.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@
4242
# Default paths to Mercurial and Git
4343
hg_cmd = 'hg'
4444
git_cmd = 'git'
45+
46+
# override python command when running standalone Mbed CLI
4547
python_cmd = sys.executable
48+
if os.path.basename(python_cmd).startswith('mbed'):
49+
python_cmd = 'python'
4650

4751
ignores = [
4852
# Version control folders

0 commit comments

Comments
 (0)