I have three python scripts. One gathers data from database(data_for_report.py
), another generates report from that data and creaters .xlsx file(report_gen.py
) and the last one modifies the style of that excel file(excel_style.py
).
Now all three files are in the same directory and what I do now is simply execute scripts one after another in the interpreter to get the report. I want to make everything work with one click so people who need this report could do it themselves. I thought of creating an exe with pyinstaller, but I can not think of a way to link my scripts together so that when data_for_report.py
ends its job report_gen.py
is started and so on.
I tried to put
subprocess.call("report_gen.py", shell=True)
at the end of the first script, but nothing happens, I just get this:
Out[2]: 1
How could I do this?