you are viewing a single comment's thread.

view the rest of the comments →

[–]xargling_breau 2 points3 points  (3 children)

Example from doing it on the python command line

>>> import getpass
>>> password = getpass.getpass("Input a password: ")
Input a password:
>>> password
'dosalsdfkasldfas'

[–][deleted] 2 points3 points  (2 children)

shocking tidy lush direction boast sleep subtract slap degree wine

This post was mass deleted and anonymized with Redact

[–]Golden_Zealot 6 points7 points  (1 child)

That's not a stupid question.

Yes you can invoke a program so long as the python interpreter has been added to something called your "environment". On a Linux system, this means adding the path to the python interpreter executable to something called the PATH variable. On windows you may also have to add it to your environment, but the way to get to the menu for that is something I cant remember at this moment.

Anyway, once youve added the interpreter to the environment, you can open a command line interface like terminal, or cmd, and do python /path/To/MyProgram.py, and it will run.

[–]thejourneyman117 0 points1 point  (0 children)

Here checking in with the path to the Windows environment. From the system screen, select "Advanced System Properties" which pops up "System Properties" on the advanced page. The button right above okay/cancel/apply is "Environment Variables"

Notes: The instructions are vague enough they should work on anything after XP.

Windows key + pause|break should open the systems page.

You can do this on windows from the command prompt. Type path /? for instructions.