dummy.py 667 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import logging
  2. import os
  3. log = logging.getLogger("OfbDummyBackend")
  4. def get_app_storage_path():
  5. return os.getcwd() + "/data"
  6. def open_file(path):
  7. log.info("open_file " + path)
  8. def is_run_at_boot():
  9. return False
  10. async def set_run_at_boot(val):
  11. log.info("run_at_boot " + str(val))
  12. async def bt_is_connected(address):
  13. log.info("is_connected " + address)
  14. return False
  15. async def bt_connect(address):
  16. log.info("dummy_connect " + address)
  17. return False
  18. async def bt_disconnect(address):
  19. log.info("dummy_disconnect " + address)
  20. return False
  21. def bt_list_devices():
  22. return []
  23. def is_dark_taskbar():
  24. return None