Jasin Yip
Jasin Yip

Reputation: 308

How could I run shell commands in Sublime Console?

Is there any way to run shell commands in Sublime Console just like running Python codes in Sublime Console?

Upvotes: 2

Views: 2445

Answers (1)

Railslide
Railslide

Reputation: 5554

You could have a look at Glue plugin.

Otherwise you could use the subprocess module from python standard library, like so:

>>> from subprocess import check_output
>>> check_output(['python', '--version'])

Upvotes: 2

Related Questions