mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
oops
This commit is contained in:
parent
0078c8426f
commit
ff32d7c4f8
@ -6,7 +6,7 @@
|
||||
from calibre.constants import ismacos, iswindows
|
||||
|
||||
if iswindows:
|
||||
from winutil import (
|
||||
from calibre_extensions.winutil import (
|
||||
ES_CONTINUOUS, ES_DISPLAY_REQUIRED, ES_SYSTEM_REQUIRED,
|
||||
set_thread_execution_state
|
||||
)
|
||||
@ -18,7 +18,7 @@ if iswindows:
|
||||
def allow_sleep(cookie):
|
||||
set_thread_execution_state(ES_CONTINUOUS)
|
||||
elif ismacos:
|
||||
from cocoa import (
|
||||
from calibre_extensions.cocoa import (
|
||||
create_io_pm_assertion, kIOPMAssertionTypeNoDisplaySleep,
|
||||
release_io_pm_assertion
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user