summaryrefslogtreecommitdiff
path: root/portato/session.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-01-27 16:25:08 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-01-27 16:25:08 +0100
commit5d4e47fb4173e5d1b327abd72c26b5fb68df99d7 (patch)
tree3fd22881ad5d74fa62be39cb8b2ff5943c2ebb61 /portato/session.py
parent42a17772c7c83261bf4097b53f2396b8fedd4a5e (diff)
downloadportato-5d4e47fb4173e5d1b327abd72c26b5fb68df99d7.tar.gz
portato-5d4e47fb4173e5d1b327abd72c26b5fb68df99d7.tar.bz2
portato-5d4e47fb4173e5d1b327abd72c26b5fb68df99d7.zip
Use implicit 'MAIN' if no name and therefore default session name is given
Diffstat (limited to 'portato/session.py')
-rw-r--r--portato/session.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/portato/session.py b/portato/session.py
index 89684be..c100be7 100644
--- a/portato/session.py
+++ b/portato/session.py
@@ -42,7 +42,7 @@ class Session (object):
self._cfg = None
self._handlers = []
- self._name = name
+ self._name = name if name else "MAIN"
if not (os.path.exists(SESSION_DIR) and os.path.isdir(SESSION_DIR)):
os.mkdir(SESSION_DIR)