← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #696579]: override method sleep

 

Question #696579 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/696579

    Status: Open => Answered

RaiMan proposed the following answer:
yes, possible:

- make a script, that contains your sleep def: (myoverrides.py)
def sleep(time):
     print "mysleep variant"

- in the script to use your sleep:
if not somepath in sys.path:
    sys.path.insert(0, somepath)
from myoverrides import *
sleep(10)

... should print 
mysleep variant

.. where homepath is the folder, that contains the myoverrides.py

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