summaryrefslogtreecommitdiff
path: root/plac/doc/ishelve2.py
diff options
context:
space:
mode:
Diffstat (limited to 'plac/doc/ishelve2.py')
-rw-r--r--plac/doc/ishelve2.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/plac/doc/ishelve2.py b/plac/doc/ishelve2.py
index baef210..fffa0b4 100644
--- a/plac/doc/ishelve2.py
+++ b/plac/doc/ishelve2.py
@@ -6,8 +6,9 @@ class ShelveInterface(object):
commands = 'set', 'show', 'showall', 'delete'
@plac.annotations(
configfile=('path name of the shelve', 'option'))
- def __init__(self, configfile='~/conf.shelve'):
- self.fname = os.path.expanduser(configfile)
+ def __init__(self, configfile):
+ self.configfile = configfile or '~/conf.shelve'
+ self.fname = os.path.expanduser(self.configfile)
self.__doc__ += '\nOperating on %s.\n.help to see '\
'the available commands.\n' % self.fname
def __enter__(self):