gmyth-stream/server/0.2/gms.py
branchtrunk
changeset 575 f7351f2fd6d8
child 577 7dc357cbaa40
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gmyth-stream/server/0.2/gms.py	Thu Apr 19 18:13:51 2007 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +#!/usr/bin/env python
     1.5 +
     1.6 +import sys
     1.7 +import os
     1.8 +import logging as log
     1.9 +from lib.server import serve_forever, load_plugins_transcoders
    1.10 +
    1.11 +log_level = log.INFO
    1.12 +for p in sys.argv[1:]:
    1.13 +    if p == "-v" or p == "--verbose":
    1.14 +        log_level -= 10
    1.15 +
    1.16 +log.basicConfig(level=log_level,
    1.17 +                format=("### %(asctime)s %(name)-18s %(levelname)-8s "
    1.18 +                        "\t%(message)s"),
    1.19 +                datefmt="%Y-%m-%d %H:%M:%S")
    1.20 +
    1.21 +pd = os.path.join("plugins", "transcoders")
    1.22 +load_plugins_transcoders(pd)
    1.23 +serve_forever()