Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13296)  |  Call(0)  |  Derive(0)  |  Import(13296)
Package resource API
--------------------

A resource is a logical file contained within a package, or a logical
subdirectory thereof.  The package resource API expects resource names
to have their path parts separated with ``/``, *not* whatever the local
path separator is.  Do not use os.path operations to manipulate resource
names being passed into the API.

The package resource API is designed to work with normal filesystem packages,(more...)

src/a/g/agx.generator.dexterity-1.0a1/src/agx/generator/dexterity/testing/data/agx.generator.dexterity-sample/bootstrap.py   agx.generator.dexterity(Download)
to_reload = False
try:
    import pkg_resources
    if not hasattr(pkg_resources, '_distribute'):
        to_reload = True
        reload(pkg_resources)
    else:
        import pkg_resources
 
if sys.platform == 'win32':

src/o/p/OpenMDAO-Framework-HEAD/examples/openmdao.examples.enginedesign/openmdao/examples/enginedesign/test/test_save_load.py   OpenMDAO-Framework(Download)
import os
import sys
import pkg_resources
import shutil
import subprocess

src/o/p/OpenMDAO-Framework-HEAD/examples/openmdao.examples.bar3simulation/openmdao/examples/bar3simulation/test/__init__.py   OpenMDAO-Framework(Download)
# this is a namespace package
try:
    import pkg_resources
    pkg_resources.declare_namespace(__name__)
except ImportError:

src/a/u/autonetkit-0.8.38/autonetkit/collection/example2.py   autonetkit(Download)
import autonetkit.log as log
from autonetkit.collection.utils import get_results
import pkg_resources
import autonetkit.collection.process as ank_process
import autonetkit.ank_messaging as ank_messaging
import autonetkit
import json
import random
 
import pkg_resources

src/a/u/autonetkit-0.8.38/autonetkit/collection/example.py   autonetkit(Download)
import json
import sys
import autonetkit.log as log
from autonetkit.collection.utils import get_results
import pkg_resources
import autonetkit.collection.process as ank_process
import autonetkit.ank_messaging as ank_messaging
import autonetkit
 
import pkg_resources

src/o/p/OpenMDAO-Framework-HEAD/examples/openmdao.examples.simple/openmdao/examples/__init__.py   OpenMDAO-Framework(Download)
# this is a namespace package
try:
    import pkg_resources
    pkg_resources.declare_namespace(__name__)
except ImportError:

src/o/p/OpenMDAO-Framework-HEAD/examples/openmdao.examples.nozzle_geometry_doe/openmdao/examples/__init__.py   OpenMDAO-Framework(Download)
# this is a namespace package
try:
    import pkg_resources
    pkg_resources.declare_namespace(__name__)
except ImportError:

src/o/p/OpenMDAO-Framework-HEAD/examples/openmdao.examples.mdao/openmdao/examples/__init__.py   OpenMDAO-Framework(Download)
# this is a namespace package
try:
    import pkg_resources
    pkg_resources.declare_namespace(__name__)
except ImportError:

src/o/p/OpenMDAO-Framework-HEAD/examples/openmdao.examples.expected_improvement/openmdao/examples/__init__.py   OpenMDAO-Framework(Download)
# this is a namespace package
try:
    import pkg_resources
    pkg_resources.declare_namespace(__name__)
except ImportError:

src/o/p/OpenMDAO-Framework-HEAD/examples/openmdao.examples.enginedesign/openmdao/examples/__init__.py   OpenMDAO-Framework(Download)
# this is a namespace package
try:
    import pkg_resources
    pkg_resources.declare_namespace(__name__)
except ImportError:

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