From f50be932ac1f73e4b09b609f7bb95dd2661fe613 Mon Sep 17 00:00:00 2001 From: Marius Sandu-Popa Date: Fri, 19 Mar 2010 15:00:31 +0200 Subject: [PATCH] modified xml files and parser to include daemon dir --- bt_comm/xml/XMLParser.py | 5 +++-- bt_comm/xml/nodes.xml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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/ -- 2.20.1