]> p2p-next.cs.pub.ro Git - cs-p2p-next.git/commitdiff
bt_comm - minor changes
authorAdriana Draghici <adriana008@gmail.com>
Fri, 12 Mar 2010 15:34:05 +0000 (15:34 +0000)
committerAdriana Draghici <adriana008@gmail.com>
Fri, 12 Mar 2010 15:34:05 +0000 (15:34 +0000)
bt_comm/start-clients/BitTorrentClientRun.py
bt_comm/start-clients/TriblerRun.py

index c2b7141204b6935709aa0fc6179fca96c8d3e215..935c19ddfe14444477f44ddde5c53384b671d23e 100644 (file)
@@ -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
index 9834c9a18003580b69d281656be696013af54f7c..5fb836ac82f71bdd3ae1b0fbc2c47537f39bbe89 100644 (file)
@@ -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")
          
 
     """