seq  2.0.0
Classes | Functions
lib.module_loader Namespace Reference

Classes

class  ModuleLoader
 Loads a python module. More...
 

Functions

def module_from_file (path)
 Given a POSIX path find its python module. More...
 

Function Documentation

◆ module_from_file()

def lib.module_loader.module_from_file (   path)

Given a POSIX path find its python module.

If the file path is found in sys.path the return value is its python module specification.

Otherwise the filename is returned.

Parameters
pathFile path
Returns
str module path (if file in sys.path) or filename