diff roundup/demo.py @ 5019:9bb20454f409

demo: Cleaning up the code
author anatoly techtonik <techtonik@gmail.com>
date Sat, 09 Jan 2016 09:34:38 +0300
parents c3a647a9f387
children 04e48cfc91da
line wrap: on
line diff
--- a/roundup/demo.py	Fri Jan 08 18:04:32 2016 +0300
+++ b/roundup/demo.py	Sat Jan 09 09:34:38 2016 +0300
@@ -143,12 +143,13 @@
 
 
 def usage(msg = ''):
+    if msg:
+        print msg
+    print """\
+Usage: %(script)s [options] [nuke]
 
-    if msg: print msg
-    print 'Usage: %s [options] [nuke]'%sys.argv[0]
-    print """
- Run a demo server. Config and database files are created
- in %(datadir)s/ subdirectory of %(script)s dir.
+ Run a demo server. Config and database files are created in
+ %(datadir)s subdirectory of %(script)s dir.
 
  'nuke' will re-initialize the demo instance, deleting the old data.
 
@@ -158,7 +159,7 @@
  -h                -- print this help message
  -t template       -- specify the tracker template to use
  -b backend        -- specify the database backend to use
-""" % dict(script=sys.argv[0], datadir=TRACKER_HOME)
+""" % dict(script=sys.argv[0], datadir=TRACKER_HOME+os.sep)
 
 
 def main():

Roundup Issue Tracker: http://roundup-tracker.org/