def startdataprocessing (self, widget):
text_file = open("SRAIdFromPythonInput.txt", "w")
for item in text_file:
execute('bash ./oneclickdataprocessor.sh')
text_file.close()
I have error text_file is not defined. How to fix that? Is it correct to call .sh script over every item in .txt file or I should use Linux shell embedded for loops?