def shake_flipbook(file_item, options): shake = get_shake() cmd = [shake, '-t', options['range'], file_item.content.shake_path()] proxy = options.get('proxy') if proxy == "P1": cmd.extend(['-zoom', '.5']) elif proxy == "P2": cmd.extend(['-zoom', '.25']) #print subprocess.list2cmdline(cmd) return timeout_process.launch_process(cmd)
def rv_flipbook(file_items, options): rv = get_rv() #print options cmd = [rv, '-c', '-sRGB'] mode = options.get('mode') if mode: cmd.append(mode) for item in file_items: cmd.extend(['[', item.content.shake_path(), ']']) #print subprocess.list2cmdline(cmd) return timeout_process.launch_process(cmd)
def rv_flipbook(file_items,options): rv = get_rv() #print options cmd = [rv,'-c','-sRGB'] mode = options.get('mode') if mode: cmd.append(mode) for item in file_items: cmd.extend(['[', item.content.shake_path(),']']) #print subprocess.list2cmdline(cmd) return timeout_process.launch_process(cmd)
def shake_flipbook(file_item,options): shake = get_shake() cmd = [shake,'-t',options['range'], file_item.content.shake_path()] proxy = options.get('proxy') if proxy == "P1": cmd.extend(['-zoom','.5']) elif proxy == "P2": cmd.extend(['-zoom','.25']) #print subprocess.list2cmdline(cmd) return timeout_process.launch_process(cmd)
def show_file_in_folder(path): """show file in native file browser and select it if supported""" cmd = show_file_in_folder_cmd(path) launch_process(cmd)