changeset 1017:78423a65d4bc

rdfdb to use LIGHT9_SHOW env, not a flag Ignore-this: 3c3c3caae85170f9b7a8bf1007f765c9
author drewp@bigasterisk.com
date Sun, 25 May 2014 21:30:15 +0000
parents ca37e8fe9a1b
children e28a443bd153
files bin/rdfdb
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/bin/rdfdb	Sun May 25 21:30:06 2014 +0000
+++ b/bin/rdfdb	Sun May 25 21:30:15 2014 +0000
@@ -436,19 +436,13 @@
     log = logging.getLogger()
 
     parser = optparse.OptionParser()
-    parser.add_option('--show',
-        help='show URI, like http://light9.bigasterisk.com/show/dance2008',
-                      default=showconfig.showUri())
     parser.add_option("-v", "--verbose", action="store_true",
                       help="logging.DEBUG")
     (options, args) = parser.parse_args()
 
     log.setLevel(logging.DEBUG if options.verbose else logging.INFO)
 
-    if not options.show:
-        raise ValueError("missing --show http://...")
-
-    db = Db(topDirsToWatch=['show/dance2013'])
+    db = Db(topDirsToWatch=[os.environ['LIGHT9_SHOW']])
 
     from twisted.python import log as twlog
     twlog.startLogging(sys.stdout)