def fileBrowser( app, working_dir ):
    app.log.infoheader( 'Browse files in %s' % (working_dir,) )

    explorer = wb_platform_win32_specific.getWindowsDir() / 'explorer.exe'
    command_list = [str(explorer), '/e,/root,"%s"' % (working_dir,)]

    CreateProcess( app, command_list, working_dir )
def FileBrowser( app, working_dir ):
    app.log.infoheader( 'Browse files in %s' % (working_dir,) )

    explorer = wb_platform_win32_specific.getWindowsDir() / 'explorer.exe'
    command_list = [str(explorer), '/e,/root,"%s"' % (working_dir,)]

    CreateProcess( app, command_list, working_dir )
def editFile( app, working_dir, all_filenames ):
    app.log.infoheader( T_('Edit %s') % (' '.join( [str(name) for name in all_filenames] ),) )
    p = app.prefs.editor

    if p.program:
        if p.options:
            command_list = [p.program, p.options]
            command_list.extend( all_filenames )
        else:
            command_list = [p.program]
            command_list.extend( all_filenames )
    else:
        notepad = wb_platform_win32_specific.getWindowsDir() / 'notepad.exe'
        command_list = [str(notepad)]
        command_list.extend( all_filenames )

    CreateProcess( app, command_list, working_dir )
def EditFile( app, working_dir, all_filenames ):
    app.log.infoheader( T_('Edit %s') % (' '.join( [str(name) for name in all_filenames] ),) )
    p = app.prefs.editor

    if p.program:
        if p.options:
            command_list = [p.program, p.options]
            command_list.extend( all_filenames )
        else:
            command_list = [p.program]
            command_list.extend( all_filenames )
    else:
        notepad = wb_platform_win32_specific.getWindowsDir() / 'notepad.exe'
        command_list = [str(notepad)]
        command_list.extend( all_filenames )

    CreateProcess( app, command_list, working_dir )