diff options
Diffstat (limited to 'portato')
-rw-r--r-- | portato/constants.py | 2 | ||||
-rw-r--r-- | portato/db/__init__.py | 3 | ||||
-rw-r--r-- | portato/plistener.py | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/portato/constants.py b/portato/constants.py index 937dea5..f188897 100644 --- a/portato/constants.py +++ b/portato/constants.py @@ -61,7 +61,7 @@ HOME = os.environ["HOME"] SU_COMMAND = "gksu -D 'Portato'" # config -CONFIG_DIR = "/etc/portato/" +CONFIG_DIR = "etc/" CONFIG_LOCATION = pjoin(CONFIG_DIR, "portato.cfg") SESSION_DIR = pjoin(os.environ["HOME"], ".portato") diff --git a/portato/db/__init__.py b/portato/db/__init__.py index f83659c..da8a81e 100644 --- a/portato/db/__init__.py +++ b/portato/db/__init__.py @@ -38,8 +38,7 @@ def Database(type): from .sql import SQLDatabase except ImportError: warning(_("Cannot load SQLDatabase.")) - _TYPE = "dict" - return Database(type) + return Database("dict") else: return SQLDatabase(SectionDict(_SESSION, "SQL")) diff --git a/portato/plistener.py b/portato/plistener.py index 349cf03..4a248ab 100644 --- a/portato/plistener.py +++ b/portato/plistener.py @@ -48,7 +48,7 @@ class PListener (object): self._rw.V() data = string.split("\0") - debug("Listner received: %s", data) + debug("Listener received: %s", data) if data[0] == "notify": self.do_notify(*data[1:]) |