Hi guys,
I am trying to execute python code using UiPath.
I saw the demo on python activity: https://docs.uipath.com/activities/docs/invoking-a-python-script, but for what I am supposed to do, this method doesn’t work.
So now I’m trying to use “Run python script activity,” but it doesn’t seem to do anything. It doesn’t throw any errors, but it doesn’t do anything!
This is my workflow:
And this is my code:
if __name__ == "__main__":
f = open('test.txt', 'x')
I am starting with a very simple code, to understand how it works, but when I launch the robot nothing happens. I also tried putting the “load python script” activity before “run python script”, but nothing changed.
Any suggestions? Thank you very much.