示例#1
0
 def run(self, command):
     command = "%s %s" % (self.cmd_command, command)
     with chdir(self.folder) if self.folder else no_op():
         with environment_append({"LC_ALL": "en_US.UTF-8"}) if self._force_eng else no_op():
             if not self._runner:
                 return check_output(command).strip()
             else:
                 return self._runner(command)
示例#2
0
 def runner_no_strip(command):
     return check_output(command)