← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #234363]: How to call for a script from withing another script

 

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

    Status: Solved => Open

Eugene S is still having a problem:
Greetings RaiMan,

I have asked you this question a while ago however, unfortunately, I
still couldn't get it working.

At the moment I have the line which I would usually run from cmd:
C:\SikuliX\runScript.cmd -r C:\SikuliX\Tests\testFlows\IAMTests\AD.sikuli


If I apply the solution you have proposed before, which is:

import os
script = r"C:\Sikuli\Tests\testFlows\Test.sikuli"
save = getBundlePath()
setBundlePath(script)
execfile(os.path.join(script, "Test.py")
setBundlePath(save)

I won't get the desired cmd like string.

So are there any other options I can try?


Thanks!
Eugene

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.