Skip to content

Commit 963fb9b

Browse files
committed
Make Popen use shell=False
Make Popen use shell=False
1 parent b818a75 commit 963fb9b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

je_editor/pyside_ui/code/code_process/code_exec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def exec_code(self, exec_file_name, exec_prefix: Union[str, list] = None) -> Non
111111
stdout=subprocess.PIPE,
112112
stderr=subprocess.PIPE,
113113
stdin=subprocess.PIPE,
114-
shell=True
114+
shell=False
115115
)
116116
self.still_run_program = True
117117
# program output message queue thread

je_editor/pyside_ui/code/shell_process/shell_exec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def __init__(
4444
self.read_program_output_from_thread = None
4545
self.main_window: EditorWidget = main_window
4646
self.compiler_path = None
47-
self.code_result: [QTextEdit, None] = None
48-
self.timer: [QTimer, None] = None
47+
self.code_result: Union[QTextEdit, None] = None
48+
self.timer: Union[QTimer, None] = None
4949
self.still_run_shell: bool = True
5050
self.process = None
5151
self.run_output_queue: queue = queue.Queue()

je_editor/pyside_ui/dialog/ai_dialog/set_ai_dialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from PySide6.QtWidgets import QWidget, QBoxLayout, QLineEdit, QHBoxLayout, QPushButton, QMessageBox, QGridLayout, QLabel
1+
from PySide6.QtWidgets import QWidget, QLineEdit, QPushButton, QMessageBox, QGridLayout, QLabel
22

33
from je_editor.pyside_ui.main_ui.ai_widget.ai_config import ai_config
44
from je_editor.utils.logging.loggin_instance import jeditor_logger

0 commit comments

Comments
 (0)