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
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")
"""