VERSION 0.1.6
[masstransit] / src / opt / masstransit / masstransit.py
index 85d9406..9a53b26 100755 (executable)
@@ -178,8 +178,9 @@ class TransilienUI:
         gtk.main_quit()
 
     def on_refreshButton_clicked(self, widget):
-        gare_source = LongNameGare(self.combo_source.get_current_text()).get_gare(ConfFile('example.cfg'))
-        gare_dest = LongNameGare(self.combo_dest.get_current_text()).get_gare(ConfFile('example.cfg'))
+        conf = ConfFile('/opt/masstransit/example.cfg')
+        gare_source = LongNameGare(self.combo_source.get_current_text()).get_gare(conf)
+        gare_dest = LongNameGare(self.combo_dest.get_current_text()).get_gare(conf)
         trajet = Trajet(gare_source , gare_dest)
         print trajet
         print self.treestore