is there any esay way to call a python script into the script thats running
file 1
main.py
Code:
# $language = "python"
# $interface = "1.0"
crt.Screen.Synchronous = True
main():
import os
strHome = os.path.expanduser('~')
strPathToFile = "{0}/Documents/test1.py".format(strHome)
strPathToFile = strPathToFile.replace('\\','/')
run(strPathToFile) <-- this is where I need help
I am looking to call different files to make the script modular and update-able easily. The second reason is some parts of the script will run independently of the main sub and will not want to use the main.
second file
test1.py
Code:
# $language = "python"
# $interface = "1.0"
crt.Screen.Synchronous = True
def main():
crt.Dialog.MessageBox("hello world")
main()