atom-python-run
atom-python-run copied to clipboard
Using pypy3 for f6 instead of python.
https://github.com/foreshadow/atom-python-run/issues/22 I tried to comment on this thread but its closed and that's only thread I got while searching for pypy. There isn't much about pypy in google either. I tried pypy3 {file} and pypy3.exe {file} but pypy3 uses python and pypy3.exe just closes the terminal. I'm on windows and environment variables are set up and pypy3 is working via cmd properly.
If you checked the option Pause, this package will first call python as a terminal wrapper, then your pypy3 is called by that python.
Uncheck that Pause and only pypy3 will run.
I unchecked pause but still the cmd window keeps closing. Can you please tell me exactly what I have to write in the command for f6 so that pypy3 is used.
pypy3 {file} as long as pypy3 is in your environment variable PATH.
So in this way pypy3 is called and it exits immediately (did you add a input() at the end of your code to prevent it from closing?)
Also, you may check ~/.atom/packages/atom-python-run/cp.log for more details, it was generated when you checked the option Pause before.
I wrote pypy3 {file} and pypy3 is in my environment variable Path. And I have written an interactive script so there are a few input() statements in the code. But still the cmd window says python.exe at top. In cp.log I found the address path has 2 slashes \ after each drive or folder like F:\abc\adf...
I looked into this package's source code, which was updated by another collaborator who had deleted his github account. For the current version, no matter whether you check Pause or not, this pakage always call python to run a wrapper first, then your command pypy3 will be called by that.
Therefore, showing a python.exe is a default manner, and the double slashes is also too.
Show me all content of cp.log.
UPD: This link might be helpful.
https://www.dropbox.com/s/2frocftvt9scryk/cp.log?dl=0 Here is the link for cp.log file