MECO™ API Reference
Static Public Member Functions | List of all members
mMeco.core.moduleLib.Module Class Reference

[ CLASS ] - Class to operate on Python modules. More...

Inheritance diagram for mMeco.core.moduleLib.Module:

Static Public Member Functions

def listFiles (path, absolutePath=False, withExtension=False)
 List Python module files. More...
 
def listModules (path, importPath=None)
 List Python modules. More...
 

Detailed Description

[ CLASS ] - Class to operate on Python modules.

Member Function Documentation

◆ listFiles()

def mMeco.core.moduleLib.Module.listFiles (   path,
  absolutePath = False,
  withExtension = False 
)
static

List Python module files.

Parameters
path[ str | False | in ] - Path.
absolutePath[ bool | False | in ] - Whether to return absolute path of the Python module files.
withExtension[ bool | False | in ] - Whether to return files with extension when absolutePath is False.
Exceptions
IOError- If given path doesn't exist.
Returns
generator - Files.

◆ listModules()

def mMeco.core.moduleLib.Module.listModules (   path,
  importPath = None 
)
static

List Python modules.

Parameters
path[ str | None | in ] - Path of the Python modules, which will be imported and listed.
importPath[ str | None | in ] - Modules will be imported with the path if provided.
Exceptions
N/A
Returns
generator - Modules.

The documentation for this class was generated from the following file: