• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(119)  |  Call(71)  |  Derive(0)  |  Import(48)
List the contents of the named resource directory

src/p/y/pythia-0.8.1.11/pyre/inventory/odb/Curator.py   pythia(Download)
        systemDepository = self.setSystemDepository(system)
 
        # create the built-in depositories
        from pkg_resources import resource_listdir, resource_isdir, resource_exists, resource_filename, Requirement
        pythia = Requirement.parse("pythia")
        entries = resource_listdir(pythia, "")
        for entry in entries:

src/r/e/repoze.bfg-1.3a15/repoze/bfg/resource.py   repoze.bfg(Download)
    def listdir(self, resource_name):
        for package, rname in self.search_path(resource_name):
            if pkg_resources.resource_exists(package, rname):
                return pkg_resources.resource_listdir(package, rname)
 
 
class DirectoryOverride:

src/t/o/ToscaWidgets-0.9.10/tw/core/command.py   ToscaWidgets(Download)
    def _copy_resource_tree(self, modname, fname):
        try:
            for name in pkg_resources.resource_listdir(modname, fname):
                if name in self.IGNORED_NAMES:
                    continue
                name = '/'.join((fname, name))
                rel_name = '/'.join((modname, name))

src/p/y/pymage-0.3.0patch1/pymage/vfs.py   pymage(Download)
    def listdir(self, path):
        path = self._abspath(path).convert(directory=True)
        result = []
        for name in pkg_resources.resource_listdir(self.package, str(path)):
            subpath = path.relativePath(name)
            if self.isdir(subpath):
                subpath = subpath.convert(directory=True)

src/e/p/epywing-HEAD/src/epywing/bookfilter.py   epywing(Download)
from functools import wraps
from utils.plugin import PluginMount
#from glob import glob
from pkg_resources import resource_listdir, resource_filename, resource_isdir, resource_string
import os
import imp
from functools import partial
def load_filter_plugins(directory='filters'):
    '''Imports all source files in `directory`, which should contain
    filter plugin subclasses of BookFilter.
    '''
    files = [f for f in resource_listdir(__name__, directory) if not resource_isdir(__name__, f) and f[-3:] == '.py']
 
    for file_ in files:

src/y/o/yould-0.3.7/yould/prob.py   yould(Download)
 
from cPickle import load, dump
from pprint import pformat, pprint
from pkg_resources import resource_filename, resource_exists, resource_listdir
from random import random
from collections import deque
from threading import Timer
def list_trainsets():
    # FIXME: won't work with a zipped egg
    return [f for f, e in
            filter(lambda t:t[1] == ".yould",
                   map(os.path.splitext,
                       resource_listdir(data.__name__, "trainsets")))]
 

src/z/o/zope.introspector-0.1.1/src/zope/introspector/util.py   zope.introspector(Download)
    """
    if is_namespace_package(dotted_name):
        return get_namespace_package_items(dotted_name)
    resources = pkg_resources.resource_listdir(dotted_name, '')
    result = []
    for res in resources:
        if res.startswith('.'):

src/m/o/modu-HEAD/src/modu/skel/__init__.py   modu(Download)
def create_project(shortname, dest, path='skel', **config):
	for filename in pkg.resource_listdir('modu', path):
		if(filename.startswith('__init__.py')):
			continue
 
		resource_path = os.path.join(path, filename)
 

src/g/a/GarlicSim-HEAD/garlicsim/garlicsim/scripts/start_simpack.py   GarlicSim(Download)
 
    while folders:
        folder = folders.pop()
        for f in pkg_resources.resource_listdir(package_name, folder):
            path = '/'.join((folder, f))
            if pkg_resources.resource_isdir(package_name, path):
                folders.append(path)

src/g/a/GarlicSim-for-Python-3.x-HEAD/garlicsim_py3/garlicsim/scripts/start_simpack.py   GarlicSim-for-Python-3.x(Download)
 
    while folders:
        folder = folders.pop()
        for f in pkg_resources.resource_listdir(package_name, folder):
            path = '/'.join((folder, f))
            if pkg_resources.resource_isdir(package_name, path):
                folders.append(path)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next