add a test echo_and_quit examples

This commit is contained in:
holger krekel
2020-03-03 18:55:19 +01:00
parent 91cdc76414
commit f61b9f7964
8 changed files with 106 additions and 57 deletions

View File

@@ -58,6 +58,7 @@ class Account(object):
db_path = db_path.encode("utf8")
if not lib.dc_open(self._dc_context, db_path, ffi.NULL):
raise ValueError("Could not dc_open: {}".format(db_path))
self.db_path = db_path
self._configkeys = self.get_config("sys.config_keys").split()
atexit.register(self.shutdown)