Closed iCreamble closed 3 years ago
Hi @iCreamble, are you saying that running python script.py
everything works ok but running subprocess.call(r'script.py', shell=True)
fails? Here are some ideas to explore -
try running with import os; os.system('python script.py')
to see what happens
I'll think using subprocess.call() the input would be with python script.py
instead or just script.py
for running a python script within another, normally you can use exec(open('script.py').read())
(for Python 3)
If above fails, can you tell me more about what is the error? and give attach the log file here? You can get the log file location from print(r.tagui_location() + '/.tagui/src/tagui.sikuli/tagui.log')
Hey, I found the problem. I did not add the absolute path to the picture names, so the automation script was trying to find the picture on the Command script's path. Now that I have added the absolute path, it works like a charm. Thanks!
Oh great, that make sense! I didn't of that. Let me know if you run into further issues :)
Hey guys. Im trying to create a py script that calls other py scripts when they are needed. Each different script will have a different automation purpose. It happens that, when I call a script that has visual automation purposes (with subprocess call command), the visual automation does not work, not recognizing the elements.
Command py script example:
Automation script example: