Function Reference
ExecPyScript
Runs python with the specified script with zero or more arguments using the current target's output directory as the working directory.
Syntax:
wwpython:ExecPyScript($pyScriptPath)
wwpython:ExecPyScript($pyScriptPath, $argument1)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14, $argument15)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14, $argument15, $argument16)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14, $argument15, $argument16, $argument17)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14, $argument15, $argument16, $argument17, $argument18)
wwpython:ExecPyScript($pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14, $argument15, $argument16, $argument17, $argument18, $argument19)Overloads:
# | Parameters |
|---|---|
1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
Parameters:
Name | Type | Description |
|---|---|---|
|
| Path to the script file. |
|
| The first argument. |
|
| The second argument. |
|
| The third argument. |
|
| The fourth argument. |
|
| The fifth argument. |
|
| The argument 6. |
|
| The argument 7. |
|
| The argument 8. |
|
| The argument 9. |
|
| The argument 10. |
|
| The argument 11. |
|
| The argument 12. |
|
| The argument 13. |
|
| The argument 14. |
|
| The argument 15. |
|
| The argument 16. |
|
| The argument 17. |
|
| The argument 18. |
|
| The argument 19. |
Returns:
XPathNodeIterator: A node set.
Example:
<xsl:variable name="VarExecResult" select="wwpython:ExecPyScript('script.py', 'some_arg')" />ExecPyScriptInDirectory
Runs python with the specified script with zero or more arguments using the specified directory as the working directory.
Syntax:
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14, $argument15)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14, $argument15, $argument16)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14, $argument15, $argument16, $argument17)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14, $argument15, $argument16, $argument17, $argument18)
wwpython:ExecPyScriptInDirectory($directoryPath, $pyScriptPath, $argument1, $argument2, $argument3, $argument4, $argument5, $argument6, $argument7, $argument8, $argument9, $argument10, $argument11, $argument12, $argument13, $argument14, $argument15, $argument16, $argument17, $argument18, $argument19)Overloads:
# | Parameters |
|---|---|
1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
Parameters:
Name | Type | Description |
|---|---|---|
|
| The working directory path where the python command line is going to be executed. |
|
| Path to the script file. |
|
| The first argument. |
|
| The second argument. |
|
| The third argument. |
|
| The fourth argument. |
|
| The fifth argument. |
|
| The argument 6. |
|
| The argument 7. |
|
| The argument 8. |
|
| The argument 9. |
|
| The argument 10. |
|
| The argument 11. |
|
| The argument 12. |
|
| The argument 13. |
|
| The argument 14. |
|
| The argument 15. |
|
| The argument 16. |
|
| The argument 17. |
|
| The argument 18. |
|
| The argument 19. |
Returns:
XPathNodeIterator: A node set.
Example:
<xsl:variable name="VarExecResult" select="wwpython:ExecPyScriptInDirectory('/path/to/workdir', 'process_data.py')" />ExecutePyScriptInCommandLine
Runs python with the specified script with zero or more arguments using the current target's output directory as the working directory.
Syntax:
wwpython:ExecutePyScriptInCommandLine($commandLine)Parameters:
Name | Type | Description |
|---|---|---|
|
| The command line in python to be executed. |
Returns:
XPathNodeIterator: A node set.
Example:
<xsl:variable name="VarExecResult" select="wwpython:ExecutePyScriptInCommandLine('script.py some_arg')" />ExecutePyScriptInDirectoryInCommandLine
Runs python with the specified script with zero or more arguments using the specified directory as the working directory.
Syntax:
wwpython:ExecutePyScriptInDirectoryInCommandLine($directoryPath, $commandLine)Parameters:
Name | Type | Description |
|---|---|---|
|
| The working directory path where the python command line is going to be executed. |
|
| The command line in python to be executed. |
Returns:
XPathNodeIterator: A node set.
Example:
<xsl:variable name="VarExecResult" select="wwpython:ExecutePyScriptInDirectoryInCommandLine('/path/to/workdir', 'script.py --verbose')" />