We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1afb36 commit dd3fe90Copy full SHA for dd3fe90
platformio/package/commands/exec.py
@@ -54,7 +54,7 @@ def package_exec_cmd(obj, package, call, args):
54
os.environ["PIO_PYTHON_EXE"] = get_pythonexe_path()
55
56
# inject current python interpreter on Windows
57
- if args[0].endswith(".py"):
+ if args and args[0].endswith(".py"):
58
args = [os.environ["PIO_PYTHON_EXE"]] + list(args)
59
if not os.path.exists(args[1]):
60
args[1] = where_is_program(args[1])
0 commit comments