Wednesday
Hi everyone,
I am trying to run a Python script from Blue Prism using the "Utility - Environment :: Start Process Read Stderr and Stdout" action. The script moves a folder into another folder.
I need to pass the following arguments to my Python script:
I am having trouble figuring out how to correctly pass these arguments into the "Parameters" field. I keep getting syntax errors when running the process.
How should I properly format the arguments in Blue Prism so that Utility - Environment :: Start Process Read Stderr and Stdout executes the script correctly?
Any help would be appreciated!
Thanks in advance! 😊
Thursday
Hi @lokasnega08 ,
Please find the parameters to be passed. Make sure the python is installed in the machine you are executing the process.
Process Name: "python.exe path"
Arguments: "Python script path"
Please try this and let me know.
Thanks,
Nandha
Thursday
Hi Nandhakumar,
I appreciate your response.
My Python script requires user inputs, and I need to pass the paths for Folder 1 and Folder 2 as arguments for it to function correctly. How should I format these arguments when running the script?
Alternatively, is there a better way to pass inputs to the script for execution?
Looking forward to your suggestions.
Thanks,
Loka Snega
Friday - last edited Friday
Hi @lokasnega08 ,
Yes, you can update the folder 1 & Folder 2 in the script file. please follow the steps below.
1. Store your python script in a EV.
2. During the run time, update the parameters folder1 and folder 2 as you wish and save the file as .py in a file path(c:\users\Move Folder_07032025.py) you wanto store.
Use: Utility - File Management and Action: Write Text File
3. Give this file path of python script as below,
Process Name: "python.exe path"
Arguments: "c:\users\Move Folder_07032025.py"
This will help you dynamically update the script and run your pyhthon script. try this and let me know.
The same can be achieved via powershell script as well.
Thanks,
Nandha