foreshadow / atom-python-run

A simple atom package. Press one key to run your python code in atom.
https://atom.io/packages/atom-python-run
MIT License
44 stars 32 forks source link

Terminal crashes when I do F5 #122

Open ghost opened 5 years ago

ghost commented 5 years ago

Issue

The issue is that when I do F5, terminal opens and crashes, i run the default command that runs when you hit F5 (In my case: python C:\Users\Public\Bot\Bot_Tests.py) on cmd and prints python: can't open file 'C:\Users\Public\Bot\Bot_Tests.py': [Errno 2] No such file or directory

What can i do?

Console Log

f5 pressed
C:\Users\Private\.atom\packages\atom-python-run\lib\terminal.js:221 platform: win32
shell: C:\WINDOWS\system32\cmd.exe
option: /c,start
call: python
script: C:\Users\Private\.atom\packages\atom-python-run\lib\..\cp\main.py
command: tell app "Terminal" to do script " python C:\Users\Public\GeoBot\Bot_Tests.py"
C:\Users\Private\.atom\packages\atom-python-run\lib\terminal.js:232 pause: true
pipeFile: false
pipePath: 
log: true
args: python,C:\Users\Public\GeoBot\Bot_Tests.py
options: {
    "cwd": "C:\\Users\\Public\\GeoBot",
    "detached": true
}
C:\Users\Private\.atom\packages\atom-python-run\lib\terminal.js:247 stderr: The system cannot find the path specified.

C:\Users\Private\.atom\packages\atom-python-run\lib\terminal.js:250 child process exited with code 1