Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zaemiel/4fbd8b5125fda7a140be to your computer and use it in GitHub Desktop.
Save zaemiel/4fbd8b5125fda7a140be to your computer and use it in GitHub Desktop.
@codebyAbhishekBharti
Copy link

Thanks a lot

@benjaminjm112
Copy link

Hi, I get this message: [Errno 2] No such file or directory

Any idea how to fix this?

Try this code:
{ "shell_cmd": "gnome-terminal --working-directory=$file_path -- bash -c 'python3 -u \"$file\" && read -n 1 -s -r'", "working_dir": "$file_path", "selector": "source.python", "env": {"PYTHONIOENCODING": "utf-8"} }

@hacker101red
Copy link

i cant give input

@prisilya07
Copy link

thank you its work to me! but i change code a little bit. if you guys still have a problem like the code not build, you can try this code
{
"cmd": ["C:\Python\Python397\python.exe", "-u", "$file"],
"file_regex": "^[ ]File "(...?)", line ([0-9]*)",
"selector": "source.python"
}

i hope this will help you guys :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment