diff -r 000000000000 -r c397a899490f gmyth-stream/server/0.3/gms.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmyth-stream/server/0.3/gms.py Wed May 30 19:53:13 2007 +0100 @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +__author__ = "Artur Duque de Souza" +__author_email__ = "artur.souza@indt.org.br" +__license__ = "GPL" +__version__ = "0.3" +__thanks__ = "Gustavo Sverzut Barbieri" + +import sys +import os +import logging as log +from lib.server import serve_forever, load_plugins_transcoders + +log_level = log.INFO +for p in sys.argv[1:]: + if p == "-v" or p == "--verbose": + log_level -= 10 + +log.basicConfig(level=log_level, + format=("### %(asctime)s %(name)-18s \t%(levelname)-8s " + "\t%(message)s"), + datefmt="%Y-%m-%d %H:%M:%S") + +pd = os.path.join("plugins", "transcoders") +load_plugins_transcoders(pd) +serve_forever()