After import a module, how to use the function defined in that module?
Asked by
lynn
first if I define the file named MyFunctions which has below function put under /home/lynn folder,
def Add(x,y):
return x+y
, then also in /home/lynn folder there is a test as below
import MyFunctions
print Add(5,6)
it should be added with MyFunctions.
I found sometimes both of these two ways works but sometimes neither of them work.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- lynn
- Solved:
- Last query:
- Last reply:
To post a message you must log in.