Ejemplo n.º 1
0
    def process_options(self):
        """
        Process the OSM data file file and logo directory.
        """
        SabxProcessor.process_options(self)

        base_path, base_file = os.path.split(self.options.out_file)
        self.template_data['osm_data'] = \
            os.path.abspath(os.path.join(base_path, "map.osm"))
        self.template_data['logo_dir'] = strip_end_slash(self.options.logo_dir)
Ejemplo n.º 2
0
    def process_options(self):
        """
        Get the CSV file name.  It's expected to be the last command-line
        argument.  Print a blank CSV file and exit if asked to.
        """
        SabxProcessor.process_options(self, 1)
        self.csv = self.args[-1]

        if self.options.blank:
            self._generate_blank()
            sys.exit(0)
Ejemplo n.º 3
0
 def process_options(self):
     """
     Get the seg id.  It's expected to be the last command-line argument.
     """
     SabxProcessor.process_options(self, 1)
     self.seg = self.args[-1]