Sublime Forum

Python Run File, get output

#1

Hi all,

How could I run a command via Python (fixjsstyle) with the current file name and read the stdout from it or refresh the file view?

James

0 Likes

#2

You can use the subprocess module for that - have a look at Default/exec.py for an example

0 Likes

#3

Brilliant! Cheers Jon!

James

0 Likes