3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Atomパッケージ"script"のPythonのバージョンを変更する方法

Last updated at Posted at 2018-04-22

Python2or3.x.xで動かしたい

確認Version: Atom1.25.0 script3.17.3

初投稿です。
CoffeeScriptに詳しくないので...うまくやる人はもっとうまくやるはず...。
とりあえず動けばいい人向けです。

  1. パッケージ"script"をインストール

  2. コンフィグフォルダを開く
     Settings -> OpenConfigFolder

  3. "python.coffee"を開く
     script -> lib -> grammars -> python.coffee

  4. 以下を修正する

exports.Python =
  'Selection Based':
    command: 'python'
    args: (context) -> ['-u', '-c', context.getCode()]

  'File Based':
    command: 'python'
    args: ({filepath}) -> ['-u', filepath]

python2.x.xを使用するならcommand: 'python'
python3.x.xを使用するならcommand: 'python3'

以上...他に根本的な解決の仕方がある気がする...。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?