Rev 9320 | Rev 9331 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9320 | Rev 9324 | ||
---|---|---|---|
Line 101... | Line 101... | ||
101 | if is_win32(): |
101 | if is_win32(): |
102 | qemu_full_path = shutil.which(qemu_command) |
102 | qemu_full_path = shutil.which(qemu_command) |
103 | qemu_directory = get_file_directory(qemu_full_path) |
103 | qemu_directory = get_file_directory(qemu_full_path) |
104 | flags += f"-L {qemu_directory} " |
104 | flags += f"-L {qemu_directory} " |
105 | s = f"{qemu_command} {flags}" |
105 | s = f"{qemu_command} {flags}" |
- | 106 | qemu_stdout = open("qemu_stdout.log", "w") |
|
- | 107 | qemu_stderr = open("qemu_stderr.log", "w") |
|
106 | if is_win32(): |
108 | if is_win32(): |
107 | return subprocess.Popen(s, bufsize = 0, stdout = subprocess.DEVNULL, stderr = subprocess.DEVNULL, stdin = subprocess.DEVNULL, shell = True, start_new_session = True) |
109 | return subprocess.Popen(s, bufsize = 0, stdout = qemu_stdout, stderr = qemu_stderr, stdin = subprocess.DEVNULL, shell = True, start_new_session = True) |
108 | else: |
110 | else: |
109 | a = shlex.split(s) |
111 | a = shlex.split(s) |
110 | return subprocess.Popen(a, bufsize = 0, stdout = subprocess.DEVNULL, stderr = subprocess.DEVNULL, stdin = subprocess.DEVNULL, start_new_session = True) |
112 | return subprocess.Popen(a, bufsize = 0, stdout = qemu_stdout, stderr = qemu_stderr, stdin = subprocess.DEVNULL, start_new_session = True) |
Line 111... | Line 113... | ||
111 | 113 | ||
112 | def run(): |
114 | def run(): |
113 | if os.path.exists("debug.log"): |
115 | if os.path.exists("debug.log"): |
114 | os.remove("debug.log") |
116 | os.remove("debug.log") |