Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
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)
    
Пример #4
0
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)
Пример #5
0
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)
Пример #6
0
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)