From: Marius Sandu-Popa Date: Fri, 19 Mar 2010 13:00:31 +0000 (+0200) Subject: modified xml files and parser to include daemon dir X-Git-Tag: getopt_long~130 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=f50be932ac1f73e4b09b609f7bb95dd2661fe613;p=cs-p2p-next.git modified xml files and parser to include daemon dir --- diff --git a/bt_comm/xml/XMLParser.py b/bt_comm/xml/XMLParser.py index 7f6565c..25be3af 100644 --- a/bt_comm/xml/XMLParser.py +++ b/bt_comm/xml/XMLParser.py @@ -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') diff --git a/bt_comm/xml/nodes.xml b/bt_comm/xml/nodes.xml index d388703..514bb2b 100644 --- a/bt_comm/xml/nodes.xml +++ b/bt_comm/xml/nodes.xml @@ -10,6 +10,7 @@ 20322 p2p 10004 + /home/p2p/cs-p2p-next/bt_comm/server /home/p2p/p2p-clients/tribler/