def get_value(self):
    if self.value.get():
        v = self.value.get()
        if (not path.dirname(v)):
            v = path.join(self.runner.working_dir, v)
        ext = os.path.splitext(v)[(- 1)].lower()
        if (not ext):
            ext = ''
            if ('RasterAndVector' in self.file_type):
                ext = '.tif'
            elif ('Raster' in self.file_type):
                ext = '.tif'
            elif ('Lidar' in self.file_type):
                ext = '.las'
            elif ('Vector' in self.file_type):
                ext = '.shp'
            elif ('Text' in self.file_type):
                ext = '.txt'
            elif ('Csv' in self.file_type):
                ext = '.csv'
            elif ('Html' in self.file_type):
                ext = '.html'
            v = (v + ext)
        v = path.normpath(v)
        return "{}='{}'".format(self.flag, v)
    elif self.value2.get():
        v = self.value2.get()
        if self.RepresentsFloat(v):
            return '{}={}'.format(self.flag, v)
        else:
            messagebox.showinfo('Error', 'Error converting parameter {} to type Float.'.format(self.flag))
    elif (not self.optional):
        messagebox.showinfo('Error', 'Unspecified file/numeric parameter {}.'.format(self.flag))
    return None
def get_value(self):
    if self.value.get():
        v = self.value.get()
        if (not path.dirname(v)):
            v = path.join(self.runner.working_dir, v)
        ext = os.path.splitext(v)[(- 1)].lower()
        if (not ext):
            ext = 
            if ('RasterAndVector' in self.file_type):
                ext = '.tif'
            elif ('Raster' in self.file_type):
                ext = '.tif'
            elif ('Lidar' in self.file_type):
                ext = '.las'
            elif ('Vector' in self.file_type):
                ext = '.shp'
            elif ('Text' in self.file_type):
                ext = '.txt'
            elif ('Csv' in self.file_type):
                ext = '.csv'
            elif ('Html' in self.file_type):
                ext = '.html'
            v = (v + ext)
        v = path.normpath(v)
        return "{}='{}'".format(self.flag, v)
    elif self.value2.get():
        v = self.value2.get()
        if self.RepresentsFloat(v):
            return '{}={}'.format(self.flag, v)
        else:
            messagebox.showinfo('Error', 'Error converting parameter {} to type Float.'.format(self.flag))
    elif (not self.optional):
        messagebox.showinfo('Error', 'Unspecified file/numeric parameter {}.'.format(self.flag))
    return None