no-cups
Last change
on this file since b2e077a was
b2e077a,
checked in by Jessica B. Hamrick <jhamrick@…>, 12 years ago
|
Refactor code to handle the operations a little bit more logically
|
-
Property mode set to
100644
|
File size:
325 bytes
|
Line | |
---|
1 | from requests import GutenbachIPPServer |
---|
2 | import BaseHTTPServer |
---|
3 | import logging |
---|
4 | |
---|
5 | # configure logging |
---|
6 | logging.basicConfig(level=logging.DEBUG) |
---|
7 | |
---|
8 | def start(): |
---|
9 | server_address = ('', 8000) |
---|
10 | httpd = BaseHTTPServer.HTTPServer(server_address, GutenbachIPPServer) |
---|
11 | httpd.serve_forever() |
---|
12 | |
---|
13 | if __name__ == "__main__": |
---|
14 | start() |
---|
Note: See
TracBrowser
for help on using the repository browser.