[ CLASS ] - Class to operate on Python modules.
More...
[ CLASS ] - Class to operate on Python modules.
◆ 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
-
- Returns
- generator - Modules.
The documentation for this class was generated from the following file: