iro/iro.py
changeset 37 6e5bd561ddd0
parent 35 cf22ec25ec23
child 49 b1d0f7ffbb64
--- a/iro/iro.py	Sun Feb 07 18:04:53 2010 +0100
+++ b/iro/iro.py	Mon Feb 08 01:18:59 2010 +0100
@@ -101,16 +101,18 @@
     manager.start()
     
     
+    conf=["iro.conf", "~/iro.conf","/etc/iro/iro.conf"]
+
     #anbieter erzeugen und konfigurieren
 
     sip=MySipgate()
-    sip.read_basic_config("iro.conf")
+    sip.read_basic_config(conf)
     
     localhost=MySMTP()
-    localhost.read_basic_config("iro.conf")
+    localhost.read_basic_config(conf)
 
     smstrade=MySmstrade()
-    smstrade.read_basic_config("iro.conf")
+    smstrade.read_basic_config(conf)
     
     #Benutzerdatenbank erstellen
     queue = Queue()
@@ -134,7 +136,7 @@
 
     #Server starten
     cp = ConfigParser.ConfigParser()
-    cp.read(["iro.conf"])
+    cp.read(conf)
     cert=cp.get('server', 'cert')
     key=cp.get('server', 'key')
     server = SecureUserDBXMLRPCServer(addr=("localhost", 8000),