On 10/3/20, Gertjan Klein wrote:
>
> I tried to find out what happens, using your other code:
>
> >>> import win32con, win32api
> >>> access = win32con.PROCESS_QUERY_LIMITED_INFORMATION
> >>> hproc = win32api.OpenProcess(access, False, pid)
> >>> executable = win32process.GetModuleFileNameEx(h
Chris Angelico schreef:
On Fri, Oct 2, 2020 at 7:51 PM Gertjan Klein wrote:
Is it possible to determine, from within Python, whether Python
allocated or inherited the console? This could be useful to know in a
(global) error trap: to be able to see a traceback, the console must
remain open, wh
Eryk Sun schreef:
On 10/2/20, Gertjan Klein wrote:
Is it possible to determine, from within Python, whether Python
allocated or inherited the console?
If a console session isn't headless (i.e. it's not a pseudoconsole)
and has a window (i.e. not allocated with CREATE_NO_WINDOW), then the
effe
On 10/2/20, Gertjan Klein wrote:
> Eryk Sun wrote:
>
>> 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.
>
> Is it possible to determine, from within Python, whether Python
> allocated or inherited the co
On Fri, Oct 2, 2020 at 7:51 PM Gertjan Klein wrote:
>
> Eryk Sun wrote:
>
> > 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.
>
> Is it possible to determine, from within Python, whether Python
> alloca
Eryk Sun wrote:
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.
Is it possible to determine, from within Python, whether Python
allocated or inherited the console? This could be useful to know in a
(g
On 9/23/20, 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
clos
It’s a py file with simple python code
From: [1]Igor Korot
Sent: Wednesday, September 23, 2020 12:39 AM
To: [2]yehudis...@gmail.com
Cc: [3]python-list@python.org
Subject: Re: Python 3.8.5 Not Launching
Hi,
On Tue, Sep 22, 2020 at 11:25 PM wrote
On 9/22/2020 11:54 PM, yehudis...@gmail.com wrote:
I installed Python 3.8.5 on Windows 10
When I click on a python file it launches the program but it closes
immediately.
When you run a program that way, the console/terminal window closes when
the program finishes executing.
--
Hi,
On Tue, Sep 22, 2020 at 11:25 PM wrote:
>
>Hi,
>
>
>
>I installed Python 3.8.5 on Windows 10
>
>When I click on a python file it launches the program but it closes
>immediately.
What is the content of this file?
Is it a py or pyc file?
Thank you.
>
>
>
>Please help, tha
10 matches
Mail list logo