source: server/lib/gutenbach-server.py

no-cups
Last change on this file was a9eb577e, checked in by Jessica B. Hamrick <jhamrick@…>, 12 years ago

Add logging configuration option

  • Property mode set to 100755
File size: 417 bytes
Line 
1#!/usr/bin/python
2
3import gutenbach.server
4import sys
5import os
6import yaml
7
8if len(sys.argv) != 2:
9    print "Invalid number of arguments: %d" % len(sys.argv)
10    sys.exit(1)
11
12config = sys.argv[1]
13if not os.path.exists(config):
14    print "Invalid config: %s" % config
15    sys.exit(1)
16
17conf_dict = yaml.load(open(config, "r"))
18print "Loaded configuration file:"
19print conf_dict
20   
21gutenbach.server.start(conf_dict)
Note: See TracBrowser for help on using the repository browser.