This question probably has been answered before on this forum but I did not manage to find it.
So my problem is the following: Let's say I am working with two scripts:
#script 1
import script2
reload (script2)
from script2 import *
def thisisatest():
print "test successfull"
return ()
def main():
realtest()
return ()
main()
and:
#script 2
def realtest():
thisisatest()
return()
Now if I run script1 I get an error message saying that global name "thisisatest" is not defined. However a thisisatest()? call on python gives me the function help.
EDIT:
My question is: Is there is a way to proceed with many scripts while doing the import part (for all the scripts) in one script or is it impossible ?
Thanks in advance,
Enzoupi