Commits

windwiny committed 0976cab

linux Popen bug, add shell=True param

  • Participants
  • Parent commits 693f94e

Comments (0)

Files changed (1)

 
     def create_subproc_logthread(self, cmd):
         sp = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
-                              startupinfo=G.startupinfo)
+                              shell=True, startupinfo=G.startupinfo)
         self.sp.append(sp)
 
         def thpg(sp, self):
         event.Skip()
         if not hasattr(self, '_rsyncdoc'):
             sp = subprocess.Popen('rsync --help -v', stdout=subprocess.PIPE,
-                                  startupinfo=G.startupinfo)
+                                  shell=True, startupinfo=G.startupinfo)
             self._rsyncdoc = sp.stdout.read().decode(G.str_encode)
             self._dlg = wx.Dialog(self, title=u"rsync --help", size=wx.Size(640,480),
                                   style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER)