I developed a python 3.6.6 console app that does some actions. Here is the structure I'm using in this app.py file:
#!/usr/bin/python3
import threading
import time
# My app content
if __name__ == '__main__':
# all may code is in here
Now I need to call this same app in a parent app that does other actions. What do I put in the parent_app.py file:
#!/usr/bin/python3
#some imports...
#the call to the app.py, but how since app.py hasn't got functions in it???
Thanks for your help to this basic question... I'm new in Python as you can see ;-)