Skip to content

Commit 99f495f

Browse files
authored
Merge pull request #360 from isidroas/subprocess
Use subprocess to handle spaces in executable path
2 parents 9f6cc3c + f9931b2 commit 99f495f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mutmut/__main__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import resource
99
import shutil
1010
import signal
11+
import subprocess
1112
import sys
1213
from abc import ABC
1314
from collections import defaultdict
@@ -1663,8 +1664,7 @@ def load_thread():
16631664
def retest(self, pattern):
16641665
with self.suspend():
16651666
assert sys.argv[-1] == 'browse'
1666-
command = ' '.join([sys.executable] + sys.argv[:-1])
1667-
os.system(f'{command} run "{pattern}"')
1667+
subprocess.run([sys.executable, *sys.argv[:-1], 'run', pattern])
16681668
input('press enter to return to browser')
16691669

16701670
self.read_data()

0 commit comments

Comments
 (0)