modified xml files and parser to include daemon dir
authorMarius Sandu-Popa <sandupopamarius@gmail.com>
Fri, 19 Mar 2010 13:00:31 +0000 (15:00 +0200)
committerMarius Sandu-Popa <sandupopamarius@gmail.com>
Fri, 19 Mar 2010 13:38:03 +0000 (15:38 +0200)
bt_comm/xml/XMLParser.py
bt_comm/xml/nodes.xml

index 7f6565c..25be3af 100644 (file)
@@ -30,7 +30,8 @@ class Node:
                self.ssh_port = list[6];
                self.username = list[7];
                self.listen_port = list[8];
-               self.clients_base_dir = list[9];
+               self.clients_base_dir = list[10];
+               self.daemon_dir = list[9];
        
        def __str__(self):
                return '[%s: %s: %s: %s: %s: %s %s: %s]' \
@@ -106,4 +107,4 @@ class Swarm:
 #~ nodes = Nodes("nodes.xml")
 #~ for node in nodes.getNodes():
        #~ print node
-       #~ print node.getClientBaseDir('libtorrent')
\ No newline at end of file
+       #~ print node.getClientBaseDir('libtorrent')
index d388703..514bb2b 100644 (file)
@@ -10,6 +10,7 @@
        <ssh_port>20322</ssh_port>
        <username>p2p</username>
        <listen_port>10004</listen_port>
+       <daemon_dir>/home/p2p/cs-p2p-next/bt_comm/server</daemon_dir>
        <clients>
            <client id="tribler">
                <base>/home/p2p/p2p-clients/tribler/</base>