no-cups
Last change
on this file was
a9eb577e,
checked in by Jessica B. Hamrick <jhamrick@…>, 13 years ago
|
Add logging configuration option
|
-
Property mode set to
100755
|
File size:
417 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | import gutenbach.server |
---|
4 | import sys |
---|
5 | import os |
---|
6 | import yaml |
---|
7 | |
---|
8 | if len(sys.argv) != 2: |
---|
9 | print "Invalid number of arguments: %d" % len(sys.argv) |
---|
10 | sys.exit(1) |
---|
11 | |
---|
12 | config = sys.argv[1] |
---|
13 | if not os.path.exists(config): |
---|
14 | print "Invalid config: %s" % config |
---|
15 | sys.exit(1) |
---|
16 | |
---|
17 | conf_dict = yaml.load(open(config, "r")) |
---|
18 | print "Loaded configuration file:" |
---|
19 | print conf_dict |
---|
20 | |
---|
21 | gutenbach.server.start(conf_dict) |
---|
Note: See
TracBrowser
for help on using the repository browser.