Timeline for How to run python from Windows cmd?
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 19 at 12:28 | comment | added | Wolf |
You may edit the extension association in the explorer, see 4 Ways to Open File Properties in Windows 10, and [Change...] the Opens with value there.
|
|
S Sep 18, 2023 at 11:00 | history | bounty ended | Darren Oakey | ||
S Sep 18, 2023 at 11:00 | history | notice removed | Darren Oakey | ||
Sep 17, 2023 at 21:01 | answer | added | Io-oI | timeline score: 1 | |
Sep 12, 2023 at 0:21 | vote | accept | Darren Oakey | ||
Sep 11, 2023 at 6:35 | history | edited | End Antisemitic Hate | CC BY-SA 4.0 |
edited title
|
Sep 11, 2023 at 6:32 | answer | added | End Antisemitic Hate | timeline score: 2 | |
Sep 11, 2023 at 6:18 | comment | added | End Antisemitic Hate | Are you familiar with Regedit, or does it scare you? | |
S Sep 11, 2023 at 5:59 | history | bounty started | Darren Oakey | ||
S Sep 11, 2023 at 5:59 | history | notice added | Darren Oakey | Draw attention | |
Sep 7, 2023 at 5:40 | history | migrated | from stackoverflow.com (revisions) | ||
Sep 7, 2023 at 4:56 | comment | added | Darren Oakey | I'm running this from straight command - but I have spent a lot of my life in unix - so I do use unix tools. as for the security risk - I get that, but the convenience is worth it. py blah.py is not an option a) it doesn't magically work across the path, and b) when I write tools, I write them in lots of things, python is just one of them, I don't want to have to remember "was this a shell script? a batc file? a python file? an exe?"... | |
Sep 7, 2023 at 4:49 | comment | added | Gerhard |
You are showing linux commands. Are you running this from straight cmd.exe or using bash from a sub linux os on the system? I would however advise against associating files directly with an interpreter, it is a security risk. Instead add py.exe to path and simply run them as py blah.py
|
|
Sep 7, 2023 at 1:42 | history | asked | Darren Oakey | CC BY-SA 4.0 |