From 41493fbf027d2dcae07ce12dff1b5bee040c5299 Mon Sep 17 00:00:00 2001 From: Adriana Draghici Date: Fri, 12 Mar 2010 15:34:05 +0000 Subject: [PATCH] bt_comm - minor changes --- bt_comm/start-clients/BitTorrentClientRun.py | 3 +-- bt_comm/start-clients/TriblerRun.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bt_comm/start-clients/BitTorrentClientRun.py b/bt_comm/start-clients/BitTorrentClientRun.py index c2b7141..935c19d 100644 --- a/bt_comm/start-clients/BitTorrentClientRun.py +++ b/bt_comm/start-clients/BitTorrentClientRun.py @@ -70,8 +70,7 @@ class BitTorrentClientRun: break; if(DEBUG): print "BitTorrentClientRun: command =", args - os.system("PYTHONPATH=/home/p2p/p2p-clients/tribler"); - args.pop(0) + log_redirect = open(self.log_dir+"/"+self.log_file,"w") output_redirect = open(self.output_dir+"/"+self.output_file,"w") p=subprocess.Popen(args, shell=False, #does not create sh process diff --git a/bt_comm/start-clients/TriblerRun.py b/bt_comm/start-clients/TriblerRun.py index 9834c9a..5fb836a 100644 --- a/bt_comm/start-clients/TriblerRun.py +++ b/bt_comm/start-clients/TriblerRun.py @@ -17,8 +17,8 @@ class TriblerRun(BitTorrentClientRun): self.set_PYTHONPATH(base_path) BitTorrentClientRun.__init__(self, base_path, - "PYTHONPATH=$base_path python $base_path/Tribler/Tools/cmdlinedl.py -o $download_dir -p $port $torrent_file 2> $log_dir/$log_file > $output_dir/$output_file", - "PYTHONPATH=$base_path python $base_path/Tribler/Tools/cmdlinedl.py -o $download_dir -p $port $torrent_file 2> $log_dir/$log_file > $output_dir/$output_file") + "python $base_path/Tribler/Tools/cmdlinedl.py -o $download_dir -p $port $torrent_file 2> $log_dir/$log_file > $output_dir/$output_file", + "python $base_path/Tribler/Tools/cmdlinedl.py -o $download_dir -p $port $torrent_file 2> $log_dir/$log_file > $output_dir/$output_file") """ -- 2.20.1