示例#1
0
def copy_tap(src, dest, x64):
    dir = os.path.join(src, { False : 'i386', True: 'amd64' }[x64])
    mkdir_silent(dest)
    for dirpath, dirnames, filenames in os.walk(dir):
        for f in filenames:
            root, ext = os.path.splitext(f)
            if ext in ('.inf', '.cat', '.sys'):
                cp(os.path.join(dir, f), dest)
        break
示例#2
0
def copy_tap(src, dest, x64):
    dir = os.path.join(src, { False : 'i386', True: 'amd64' }[x64])
    mkdir_silent(dest)
    for dirpath, dirnames, filenames in os.walk(dir):
        for f in filenames:
            root, ext = os.path.splitext(f)
            if ext in ('.inf', '.cat', '.sys'):
                cp(os.path.join(dir, f), dest)
        break
示例#3
0
def copy_tapinstall(src, dest, x64):
    base = { False : 'i386', True: 'amd64' }[x64]
    mkdir_silent(dest)
    for dirpath, dirnames, filenames in os.walk(home_fn(src)):
        for f in filenames:
            if f == 'devcon.exe':
                dir_name = os.path.basename(dirpath)
                s = os.path.join(dirpath, f)
                if dir_name == base:
                    cp(s, dest)
示例#4
0
def copy_tapinstall(src, dest, x64):
    base = { False : 'i386', True: 'amd64' }[x64]
    mkdir_silent(dest)
    for dirpath, dirnames, filenames in os.walk(home_fn(src)):
        for f in filenames:
            if f == 'tapinstall.exe':
                dir_name = os.path.basename(dirpath)
                s = os.path.join(dirpath, f)
                if dir_name == base:
                    cp(s, dest)