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