deca icon indicating copy to clipboard operation
deca copied to clipboard

Please prevent the system from going to sleep while scanning the files

Open noskill24 opened this issue 1 year ago • 0 comments

Parsing the files takes a long time (several hours on some machines), so please prevent the system from going to sleep while parsing the new project.

There are commands for Microsoft Windows:

Prevent the system from going to sleep:

ctypes.windll.kernel32.SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_AWAYMODE_REQUIRED);

Allow the system to sleep normally:

ctypes.windll.kernel32.SetThreadExecutionState(ES_CONTINUOUS);

noskill24 avatar Mar 15 '23 08:03 noskill24