def input_file(self):
        #self.input.setText('/Users/dane/Downloads/latest.osm')
        #return
        val = QFileDialog.getOpenFileNames(None, "Select one or more .osm files to open",osm_tools.get_last_load_dir('osmosis'), "OSM (*.osm *.osm.bz2)")

        if isinstance(val, QStringList):
            text = ';'.join([str(i) for i in val])
            if text:
                self.input.setText(text)
                osm_tools.set_last_load_dir('osmosis',val[0])
        elif str(val):
            self.input.setText(str(val))
            osm_tools.set_last_load_dir('osmosis',str(val))
 def input_file(self):
     if debug:
         self.input.setText('/Users/dane/Downloads/latest.osm')
         return
     val = QFileDialog.getOpenFileNames(None, "One or more OSM files to import",osm_tools.get_last_load_dir('osm2pgsql'), "OSM (*.osm *.osm.bz2)")
     if isinstance(val, QStringList):
         text = ';'.join([str(i) for i in val])
         if text:
             self.input.setText(text)
             osm_tools.set_last_load_dir('osm2pgsql',val[0])                
     elif str(val):
         self.input.setText(str(val))
         osm_tools.set_last_load_dir('osm2pgsql',str(val))