[ CLASS ] - Meco.
More...
◆ __init__()
| def mMeco.mecoLib.Meco.__init__ |
( |
|
self, |
|
|
|
parameters = None |
|
) |
| |
Constructor.
- Parameters
-
| parameters | [ str | None | in ] - Parameters. |
- Exceptions
-
- Returns
- None - None.
◆ allLib()
| def mMeco.mecoLib.Meco.allLib |
( |
|
self | ) |
|
◆ setPowerShellExecutablePath()
| def mMeco.mecoLib.Meco.setPowerShellExecutablePath |
( |
|
self, |
|
|
|
path |
|
) |
| |
Set Powershell executable path.
- Parameters
-
| path | [ str | None | in ] - Absolute path of Powershell executable. |
- Exceptions
-
- Returns
- bool - Result.
◆ execute()
| def mMeco.mecoLib.Meco.execute |
( |
|
self | ) |
|
Execute.
- Parse the request
- Initialize.
- Solve.
- Build.
- Respond.
- Exceptions
-
- Returns
- None - None.
◆ executeCommand()
| def mMeco.mecoLib.Meco.executeCommand |
( |
|
self, |
|
|
|
commands, |
|
|
|
cwd = None |
|
) |
| |
Execute given command in resolved environment.
Method adds --set-only flag to the request and invokes mMeco.mecoLib.Meco.execute method first. Then given commands is executed in the resolved environment via subprocess.Popen.
- Parameters
-
| commands | [ str, list of str | None | in ] - Commands to be executed (; separated). |
| cwd | [ str | None | in ] - Current working directory for subprocess.Popen. |
- Exceptions
-
| IOError | - If PowerShell executable path doesn't exist on Windows OS . |
- Returns
- tuple - stdout and stderr.
◆ writeFile()
| def mMeco.mecoLib.Meco.writeFile |
( |
|
self | ) |
|
Execute and return the path of the script file.
- Exceptions
-
- Returns
- str - Absolute path of the script file.
-
None - If a problem occurs during execution.
The documentation for this class was generated from the following file: