# HG changeset patch # User drewp@bigasterisk.com # Date 2014-05-25 21:30:15 # Node ID 78423a65d4bcf008785073d86d8ef47773486fcc # Parent ca37e8fe9a1ba5409db22ae6d5b0af7221b9b1dc rdfdb to use LIGHT9_SHOW env, not a flag Ignore-this: 3c3c3caae85170f9b7a8bf1007f765c9 diff --git a/bin/rdfdb b/bin/rdfdb --- a/bin/rdfdb +++ b/bin/rdfdb @@ -436,19 +436,13 @@ if __name__ == "__main__": 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)