I defined my own module <folder1>/<module1> and inside I <module1>, defined <function1>.
Now I import using import statement and call function1, it wont work.
But built-in package/lib import works.
import <module1>
import os
....
os.system()
call <function1()> <----- fails here
If I do following, then it works:
from <module1> import *
call <function1()>
What are difference between these statement such that import does not work for user-defined lib.
looks like i figured out during the post. :)
Now I import using import statement and call function1, it wont work.
But built-in package/lib import works.
import <module1>
import os
....
os.system()
call <function1()> <----- fails here
If I do following, then it works:
from <module1> import *
call <function1()>
What are difference between these statement such that import does not work for user-defined lib.
looks like i figured out during the post. :)