summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-03-09 22:41:52 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-03-09 22:41:52 +0100
commit60c9d2fbf81163f1c86633094048b3bb79cc22dc (patch)
treebcdbab424b29e0c66da46f507b99ce768fbd417b /portato
parent7c06ac66c161cc8b4110999dc2bf2f2a98ae574b (diff)
downloadportato-60c9d2fbf81163f1c86633094048b3bb79cc22dc.tar.gz
portato-60c9d2fbf81163f1c86633094048b3bb79cc22dc.tar.bz2
portato-60c9d2fbf81163f1c86633094048b3bb79cc22dc.zip
Small changes
Diffstat (limited to '')
-rw-r--r--portato/helper.py1
-rw-r--r--portato/session.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/portato/helper.py b/portato/helper.py
index b26b04c..5cf57a0 100644
--- a/portato/helper.py
+++ b/portato/helper.py
@@ -16,6 +16,7 @@ Some nice functions used in the program.
from __future__ import absolute_import
import os, signal, logging, grp
+from gettext import lgettext as _
debug = logging.getLogger("portatoLogger").debug
info = logging.getLogger("portatoLogger").info
diff --git a/portato/session.py b/portato/session.py
index be622cf..636e00a 100644
--- a/portato/session.py
+++ b/portato/session.py
@@ -16,7 +16,7 @@ import os, os.path
from .config_parser import ConfigParser
from .constants import SESSION_DIR
-from .helper import debug
+from .helper import _,debug, info
class Session (object):
"""
@@ -44,6 +44,7 @@ class Session (object):
if not (os.path.exists(SESSION_DIR) and os.path.isdir(SESSION_DIR)):
os.mkdir(SESSION_DIR)
self._cfg = ConfigParser(os.path.join(SESSION_DIR, file))
+ info(_("Loading session from '%s'.") % self._cfg.file)
try:
self._cfg.parse()
except IOError, e: