new import with imports pre-def
how to import foo module like this example.
main.py :
import time
from foo import main
return main()
foo.py :
def main()
print 'hello', time.time()
I tried to explain, there are two or more files, I wanted to upload a
import already defined by another file without defining in what will be
loaded, like my example
No comments:
Post a Comment