ioquatix / script-runner

This package will run various script files inside of Atom. It currently supports JavaScript, CoffeeScript, Ruby, and Python. You can add more.
http://atom.io/packages/script-runner
Other
62 stars 23 forks source link

Try to switch python version #82

Closed kden416 closed 6 years ago

kden416 commented 6 years ago
"script-runner":
    python: "/usr/bin/python3"

in config.cson not working. How can i switch version? I need python 3, but default version is 2.7

ghost commented 6 years ago

Hi.

The power of this package is that you can select how the script will run by specifying it in the shebang line. Did you try this way yet?

Regards.

kden416 commented 6 years ago

Yes, but it is not convenient for me.

ioquatix commented 6 years ago

This is probably something we should support, but I'm not sure what is the best way yet.

ghost commented 6 years ago

Do you know how to use Atom's API to identify which grammar is used in the active editor?

On Sat, Aug 26, 2017 at 3:38 AM, Samuel Williams notifications@github.com wrote:

This is probably something we should support, but I'm not sure what is the best way yet.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ioquatix/script-runner/issues/82#issuecomment-325070950, or mute the thread https://github.com/notifications/unsubscribe-auth/AcfYQ1Ks4x9I9Dugiu_s3vlzKpOyeDcwks5sb3cvgaJpZM4O9s6Z .

ioquatix commented 6 years ago

So, script runner already does that. But the interpreters are hard coded.