@@ -113,13 +113,13 @@ def ensure_pyinstaller(self) -> bool:
113113 path = sys .executable
114114 try :
115115 subprocess .run ([path , '-m' , 'PyInstaller' , '--version' ],
116- check = True , stdout = subprocess .PIPE , stderr = subprocess .PIPE )
116+ check = True , stdout = subprocess .PIPE , stderr = subprocess .PIPE , shell = True )
117117 self .update_status ("PyInstaller detected." )
118118 return True
119119 except subprocess .CalledProcessError :
120120 self .update_status ("PyInstaller not detected, trying to install..." )
121121 try :
122- subprocess .check_call ([path , "-m" , "pip" , "install" , "pyinstaller" ])
122+ subprocess .check_call ([path , "-m" , "pip" , "install" , "pyinstaller" ], shell = True )
123123 self .update_status ("PyInstaller was installed successfully." )
124124 return True
125125 except subprocess .CalledProcessError as e :
@@ -233,7 +233,7 @@ def run_pyinstaller(self, options: list) -> bool:
233233 self .update_status (f"Execute Command: { ' ' .join (cmd )} " )
234234 try :
235235 process = subprocess .Popen (
236- cmd , stdout = subprocess .PIPE , stderr = subprocess .STDOUT , universal_newlines = True
236+ cmd , stdout = subprocess .PIPE , stderr = subprocess .STDOUT , universal_newlines = True , shell = True
237237 )
238238
239239 for line in process .stdout :
0 commit comments