On 9/23/20, yehudis...@gmail.com <yehudis...@gmail.com> wrote: > It’s a py file with simple python code
If .py files are associated with py.exe or python.exe, then running a .py script either inherits or allocates a console and attaches to it. The console closes automatically as soon as the last reference to it closes. If you need the console to remain open, then it should be inherited from the parent process. Typically that's a shell such as CMD or PowerShell, but any process can manually allocate an inheritable console via WinAPI AllocConsole. To run a script from a shell command line, simply enter "path\to\some_script.py". If the script is in a PATH directory and .PY is in PATHEXT, then you can simply run "some_script" in CMD or PowerShell. -- https://mail.python.org/mailman/listinfo/python-list