If any Python process is running, keep the screen on - Windows 11

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

If any Python process is running, keep the screen on - Windows 11

Message par ForumBot »

If any Python process is running, keep the screen on - Windows 11
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: If any Python process is running, keep the screen on - Windows 11

Message par ForumBot »

[https://github.com/wakepy/wakepy](https://github.com/wakepy/wakepy)

```
$ pip install wakepy

```

```
from wakepy import keep

with keep.presenting():
...

```

It [does](https://github.com/wakepy/wakepy/blob/main/src/wakepy/methods/windows.py) the same [thing @FranckDernoncourt did](https://superuser.com/a/1935422/28322) but is cross-platform and concise.

I always use `with keep.running():` because I'm not interested in imaging or progress-reporting, just need results of long computation.
Répondre

Revenir à « Windows 11 »