(cmd)
| 236 | |
| 237 | |
| 238 | def exec_command(cmd): |
| 239 | if platform == 'windows': |
| 240 | os.system('start cmd /k ' + cmd) |
| 241 | elif platform == 'osx': |
| 242 | tell.app('Terminal','do script"{cmd}"'.format(cmd=cmd),background=True) |
| 243 | |
| 244 | elif platform == 'linux': |
| 245 | os.system("gnome-terminal -e 'bash -c \"{cmd}\"'".format(cmd=cmd)) |
| 246 | else: |
| 247 | sublime.message_dialog('[waring] <Run Command> module is not supported this system') |
| 248 | |
| 249 | |
| 250 | def write_file(workdir,text): |