I want to read a textfile in which a python script is saved. Is it possible to run this script line by line with the subprocess module?
My prefabricated code-snippet:
def Call_LSD(session,worknumber="",projectnumber=""):
    textfile=open('script.txt', 'r')
    Lines=textfile.readlines()
    
    for line in Lines:
        "Here should be the process, where each line has to be executed!"    
        if.....:
    textfile.close()
 
    