RunPythonScript with arguments

I have a Python script that takes arguments via argparse. How do I pass my arguments to this script when running it with the RunPythonScript command? I tried running -RunPythonScript which lets me input a string but it seems like it only takes the path to the script, not the script + the arguments (i.e., something like “myscript.py arg1 arg2“).

Hi @hkit.yong, basically your python script needs to be written so it accepts the call to

_-RunPythonScript , the script path and name (in quotes) and the argument(s). Something like:

_-RunPythonScript “C:\MyPath\MyScriptName.py” arg1

See if this example helps.

_

c.