deca
deca copied to clipboard
Please prevent the system from going to sleep while scanning the files
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);