We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found "getch()" in a C# file generated by Py To Cs.
The text was updated successfully, but these errors were encountered:
Could you provide me with a small code fragment that shows me how the call to getch() is being made in your Python source code?
getch()
Sorry, something went wrong.
Script Downloader
from sys import argv from requests import get from os import path, getcwd, startfile from getpass import getuser from sys import stderr from msvcrt import getch for i in range(len(open(argv[1]).readlines())): n = open(argv[1]).readlines()[i].split() if n[0] == "download": drive, paf = path.splitdrive(n[1]) path, file = path.split(paf) del paf, drive, path netpath = n[1] drive, p = path.splitdrive(getcwd()) del p locpath = path.join(drive, "Users\\" + getuser() + "\\Downloads\\" + file) open(locpath, 'w').write(get(netpath)) lpipk = locpath elif n[0] == "open": if lpipk != "": startfile(lpipk) else: stderr.write("ERROR: Did not download in session before running the command") elif n[0] == "exit": try: quit(int(n[1])) except TypeError: stderr.write("ERROR: exit command argument 1: NaN") getch() quit() except IndexError: quit() else: stderr.write("ERROR: Unexpected command\n " + ' '.join(n))
getch() is in an exception handler except TypeError:
except TypeError:
No branches or pull requests
I found "getch()" in a C# file generated by Py To Cs.
The text was updated successfully, but these errors were encountered: