run_elixir_test.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:sublime-text-elixir-tests 作者: tarzan 项目源码 文件源码
def run_shell_command(self, command, working_dir):
    if not command:
      return False
    if BEFORE_CALLBACK:
      os.system(BEFORE_CALLBACK)
    if AFTER_CALLBACK:
      command += " ; " + AFTER_CALLBACK
    self.save_test_run(command, working_dir)
    if COMMAND_PREFIX:
      command = COMMAND_PREFIX + ' ' + command
    if int(sublime.version().split('.')[0]) <= 2:
      command = [command]
    self.view.window().run_command("exec", {
      "cmd": command,
      "shell": True,
      "working_dir": working_dir,
      "file_regex": r"([^ ]*\.ex?):?(\d*)",
      "encoding": TERMINAL_ENCODING
    })
    self.display_results()
    return True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号