when i build the code, the music starts but the window doesn’t
this is the sublime-build code:
Python build problems
Beniamin
#1
0 Likes
OdatNurd
#2
The underlying code in Python that’s responsible for executing programs in build systems sets flags when you use cmd
on Windows that stops the program that’s launched from being able to display windows.
If you want to display the window, you need to either use shell_cmd
instead of cmd
:
{
"shell_cmd": "python \"$file\"",
}
Or, set shell
to true
:
{
"cmd": ["python", "$file"],
"shell": true
}
In both cases, add in the selector
and file_regex
you’re using above; I didn’t enter them here because they’re too much trouble to transcribe and you shared an image instead of the text of the build itself.
0 Likes