Sun, 04 Feb 2018 01:36:59 +0000
Changed scheduler busylooping method, and decreased precision to 5 minutes:
if there are finite-horizon events in the queue, the scheduler thread will never
sleep longer than that. This is to quickly get back on track with the schedule
when the computer wakes up from sleep, if the sleep monitor is not working or
is not implemented for the particular operating system. However, if there are
only infinite-horizon events in the queue (meaning, DreamTime-scheduled events,
and the system is sleeping or "sleeping"), the scheduler will also sleep.
Hopefully this will also help the system stay properly asleep.
from setuptools import setup APP = ['borgend.py'] DATA_FILES = [] OPTIONS = { 'argv_emulation': False, 'plist': { 'LSUIElement': True, }, 'packages': ['rumps', 'keyring'], # The following is the real list, byt py2app fails despite # them being installed according to pip3 and everything #'packages': ['rumps', 'keyring', 'xdg', 'pyyaml'], } setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], )