Loads a python module.
More...
|
tuple | file_path = attr.ib(default=None, kw_only=True) |
|
tuple | mod_name = attr.ib(default=None, kw_only=True) |
|
tuple | module = attr.ib(init=False) |
|
Loads a python module.
file_path (str): mod_name (str):
def seqlib.ob.ModuleLoader.__attrs_post_init__ |
( |
|
self | ) |
|
def seqlib.ob.ModuleLoader.__attrs_post_init__ |
( |
|
self | ) |
|
def seqlib.ob.ModuleLoader.from_mod |
( |
|
m | ) |
|
|
static |
Loads a module from dotted module spec.
def seqlib.ob.ModuleLoader.from_mod |
( |
|
m | ) |
|
|
static |
Loads a module from dotted module spec.
def seqlib.ob.ModuleLoader.from_path |
( |
|
fn | ) |
|
|
static |
Load module from file path.
Loads a python module given its file path (e.g. /a/b/c/x.py). If the module is found in sys.path then the equivalen to::
import a.b.c.x
is executed and the module is properly added to sys.modules.
Othewise the module is imported and 'x' is added to sys.modules.
def seqlib.ob.ModuleLoader.from_path |
( |
|
fn | ) |
|
|
static |
Load module from file path.
Loads a python module given its file path (e.g. /a/b/c/x.py). If the module is found in sys.path then the equivalen to::
import a.b.c.x
is executed and the module is properly added to sys.modules.
Othewise the module is imported and 'x' is added to sys.modules.
def seqlib.ob.ModuleLoader.load_file |
( |
|
self | ) |
|
def seqlib.ob.ModuleLoader.load_file |
( |
|
self | ) |
|
def seqlib.ob.ModuleLoader.load_module |
( |
|
self | ) |
|
def seqlib.ob.ModuleLoader.load_module |
( |
|
self | ) |
|
def seqlib.ob.ModuleLoader.reload |
( |
|
self | ) |
|
def seqlib.ob.ModuleLoader.reload |
( |
|
self | ) |
|
tuple seqlib.ob.ModuleLoader.file_path = attr.ib(default=None, kw_only=True) |
|
static |
tuple seqlib.ob.ModuleLoader.mod_name = attr.ib(default=None, kw_only=True) |
|
static |
seqlib.ob.ModuleLoader.mod_name |
tuple seqlib.ob.ModuleLoader.module = attr.ib(init=False) |
|
static |
seqlib.ob.ModuleLoader.module |
The documentation for this class was generated from the following files:
- INTROOT/lib/python3.7/site-packages/seqlib/ob.py
- seq/seqlib/src/seqlib/ob.py