def _create_runnable_task(task_id, input_names, output_names):
    """Write the necessary files and generate the cmds"""
    input_files = [get_temp_file(suffix=x) for x in input_names]
    output_files = [get_temp_file(suffix=x) for x in output_names]
    d = get_temp_dir("runnable-task-")
    msg = "MOCK DATA"
    cmds = [_to_cmd(msg, x) for x in output_files]
    return _to_runnable_task(task_id, input_files, output_files, cmds, d)
def _create_runnable_task(task_id, input_names, output_names):
    """Write the necessary files and generate the cmds"""
    input_files = [get_temp_file(suffix=x) for x in input_names]
    output_files = [get_temp_file(suffix=x) for x in output_names]
    d = get_temp_dir("runnable-task-")
    msg = "MOCK DATA"
    cmds = [_to_cmd(msg, x) for x in output_files]
    return _to_runnable_task(task_id, input_files, output_files, cmds, d)
	"""Main GUI Application"""

	def build(self):
		self.title = 'Triton FPR'
		return Interface()

	def _setup(self,fb, banner, tmp_dir='/tmp'):
		"""Sets up global parameters"""
		global fishbase, BANNER, TEMP_DIR, cam
		fishbase = fb
		BANNER = banner
		TEMP_DIR = tmp_dir
		cam = cv2.VideoCapture(0)

if __name__ == '__main__':
	"""Executed if standalone"""
	#general imports
	sys.path.append('../..')
	import base
	
	#configurations
	conf_parser = config_parser.ConfigParser('../../config.spec',regex=':')
	fishbase = base.initialize_fishbase(conf_parser.get('DATASOURCE_URL'))
	banner = '../../../res/logo/bitmap/banner_90dpi.png'
	tmp_dir = base.get_temp_dir()
	
	#execution
	main_gui_app = MainGUIApp()
	main_gui_app._setup(fishbase, banner, tmp_dir)
	main_gui_app.run()
    """Main GUI Application"""
    def build(self):
        self.title = 'Triton FPR'
        return Interface()

    def _setup(self, fb, banner, tmp_dir='/tmp'):
        """Sets up global parameters"""
        global fishbase, BANNER, TEMP_DIR, cam
        fishbase = fb
        BANNER = banner
        TEMP_DIR = tmp_dir
        cam = cv2.VideoCapture(0)


if __name__ == '__main__':
    """Executed if standalone"""
    #general imports
    sys.path.append('../..')
    import base

    #configurations
    conf_parser = config_parser.ConfigParser('../../config.spec', regex=':')
    fishbase = base.initialize_fishbase(conf_parser.get('DATASOURCE_URL'))
    banner = '../../../res/logo/bitmap/banner_90dpi.png'
    tmp_dir = base.get_temp_dir()

    #execution
    main_gui_app = MainGUIApp()
    main_gui_app._setup(fishbase, banner, tmp_dir)
    main_gui_app.run()