diff options
Diffstat (limited to 'sugar-network')
-rwxr-xr-x | sugar-network | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sugar-network b/sugar-network index cb81d79..818721e 100755 --- a/sugar-network +++ b/sugar-network @@ -21,6 +21,7 @@ import sys import shlex import types import locale +import gettext from json import dumps, loads from os.path import join, exists, isfile @@ -35,6 +36,9 @@ from sugar_network.toolkit import application, coroutine from sugar_network.toolkit import Option, BUFFER_SIZE, enforce +gettext.textdomain('sugar-network') + + quiet = Option( 'turn off any output', default=False, type_cast=Option.bool_cast, action='store_true', @@ -71,7 +75,7 @@ _LIST_RE = re.compile(r'\s*[;,:]+\s*') class ClientRouter(Router, ClientRoutes): def __init__(self): - home = db.Volume(client.path('db'), RESOURCES, lazy_open=True) + home = db.Volume(client.path('db'), RESOURCES) Router.__init__(self, self) ClientRoutes.__init__(self, home, client.api_url.value if not offline.value else None, |