Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

        def zip_files(zf, search='egg-info'):
    names = [n for n in zf.namelist() if search in n]
    fobj_list = [zf.read(n) for n in names]
    return list(zip(fobj_list, map(os.path.basename, names)))
        


src/w/e/Web2Executable-HEAD/main.py   Web2Executable(Download)
from utils import zip_files, join_files, log, get_temp_dir
import sys, os, glob, json, re, shutil, stat, tarfile
import zipfile, traceback, platform, filecmp
from PySide import QtGui, QtCore
from PySide.QtGui import QApplication
            zip_file = os.path.join(tempDir, self.projectName()+'.nw')
 
            zip_files(zip_file, self.projectDir(), exclude_paths=[outputDir])
            for ex_setting in self.export_settings.values():
                if ex_setting.value:

src/p/k/pkgtools-0.7.3/pkgtools/pkg.py   pkgtools(Download)
 
from email.parser import FeedParser
from .utils import ext, tar_files, zip_files
 
 
    def __init__(self, egg_path):
        z = zipfile.ZipFile(egg_path)
        self.location = self._arg_name = os.path.abspath(egg_path)
        super(Egg, self).__init__(zip_files(z, 'EGG-INFO'))
 

src/p/k/pkgtools-HEAD/pkgtools/pkg.py   pkgtools(Download)
 
from email.parser import FeedParser
from .utils import ext, tar_files, zip_files
 
 
    def __init__(self, egg_path):
        z = zipfile.ZipFile(egg_path)
        self.location = self._arg_name = os.path.abspath(egg_path)
        super(Egg, self).__init__(zip_files(z, 'EGG-INFO'))