All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Lib.imp.py Maven / Gradle / Ivy

Go to download

Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.

There is a newer version: 2.7.4
Show newest version
import os.path

from _imp import (C_BUILTIN, C_EXTENSION, IMP_HOOK, PKG_DIRECTORY, PY_COMPILED, PY_FROZEN, PY_SOURCE,
                  __doc__, acquire_lock, find_module, getClass, get_magic, get_suffixes,
                  is_builtin, is_frozen,
                  load_compiled, load_dynamic, load_module, load_source,
                  lock_held, new_module, release_lock, reload)


class NullImporter(object):

    def __init__(self, path):
        if os.path.isdir(path):
            raise ImportError()

    def find_module(self, fullname, path=None):
        return None





© 2015 - 2024 Weber Informatics LLC | Privacy Policy