← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #683933]: Sikuli 1.1.3 - call a function from text file

 

Question #683933 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683933

Description changed to:
Sry for another yet newb questions RaiMan - what is the best way to call
a function that's already predefined by a user from a text file, eg:

def myScript():
 #How to call a function (such as someFunction2)  here from the "test.txt" file below?


Contents of test.txt file (this file will be in the same directory as the compiled JAR file, and it'll have all the functions commented out except the one the end user likes to call, this way if a user wants to call another function he needs to modify this txt file and re-run the script to see changes)

#def someFunction():
 #my fuction 1

def someFunction2():
 #my fuction 1

#def someFunction3():
 #my fuction 1

In a way you can say that the test.txt file acts soft of as a database,
I hope this makes sense, thank you so much!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.