Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.

Commit 5e2253e

Browse files
authored
Merge pull request #1774 from mu-editor/win_shell
venv: Hide startup pop-up command prompts on Windows.
2 parents 8955b4e + 8b9a187 commit 5e2253e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mu/virtual_environment.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,7 @@ def ensure_interpreter_version(self):
717717
self.interpreter,
718718
"-c",
719719
'import sys; print("%s%s" % sys.version_info[:2])',
720+
shell=True if self._is_windows else False,
720721
)
721722
if not ok:
722723
raise VirtualEnvironmentEnsureError(
@@ -740,7 +741,10 @@ def ensure_key_modules(self):
740741
for module, *_ in wheels.mode_packages:
741742
logger.debug("Verifying import of: %s", module)
742743
ok, output = self.run_subprocess(
743-
self.interpreter, "-c", "import %s" % module
744+
self.interpreter,
745+
"-c",
746+
"import %s" % module,
747+
shell=True if self._is_windows else False,
744748
)
745749
if not ok:
746750
raise VirtualEnvironmentEnsureError(

0 commit comments

Comments
 (0)