Skip to content

Commit 106e1a9

Browse files
committed
demo: Cleaning up the code
1 parent 64c8aff commit 106e1a9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

roundup/demo.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@ def run_demo(home):
143143

144144

145145
def usage(msg = ''):
146+
if msg:
147+
print msg
148+
print """\
149+
Usage: %(script)s [options] [nuke]
146150
147-
if msg: print msg
148-
print 'Usage: %s [options] [nuke]'%sys.argv[0]
149-
print """
150-
Run a demo server. Config and database files are created
151-
in %(datadir)s/ subdirectory of %(script)s dir.
151+
Run a demo server. Config and database files are created in
152+
%(datadir)s subdirectory of %(script)s dir.
152153
153154
'nuke' will re-initialize the demo instance, deleting the old data.
154155
@@ -158,7 +159,7 @@ def usage(msg = ''):
158159
-h -- print this help message
159160
-t template -- specify the tracker template to use
160161
-b backend -- specify the database backend to use
161-
""" % dict(script=sys.argv[0], datadir=TRACKER_HOME)
162+
""" % dict(script=sys.argv[0], datadir=TRACKER_HOME+os.sep)
162163

163164

164165
def main():

0 commit comments

Comments
 (0)