Commit ecd9de84 authored by Michael Weinrich's avatar Michael Weinrich
Browse files

former start script removed

parent 18d769e6
#! /usr/bin/env python
# Licensed under the MIT license
# Copyright 2007, Michael Weinrich <>
import os, sys
from twisted.internet import reactor
from twisted.python import usage
from upntest.base import UPnT
from configobj import ConfigObj
class Options(usage.Options):
optParameters = [['configfile', 'c', '', 'path to configfile'],
def main(options):
# get settings or options
def setConfigFile(filename):
def findConfigDir():
configDir = os.path.expanduser('~')
configDir = os.getcwd()
return configDir
if filename is '':
filename = os.path.join( findConfigDir(), '.upntest')
return filename
config = ConfigObj( setConfigFile( options['configfile']))
u = UPnT()
if __name__ == '__main__':
options = Options()
except usage.UsageError, errortext:
print '%s: %s' % (sys.argv[0], errortext)
print '%s: Try --help for usage details.' % (sys.argv[0])
reactor.callWhenRunning(main, options)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment