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

    Status: Open => Answered

RaiMan proposed the following answer:
-- code length
no, cannot be increased.
Is a buffer lenght restriction (64KB) of the used Jython interpreter.

-- script call for the rest
When running the script from command line, this is the easiest option:

# script1.sikuli
# many lines of code
import os
dir = os.path.dirname(getBundlePath()) # parent folder of script folder
nextSikuli = os.path.join(dir, "script2.sikuli")
setBundlePath(nextSikuli)
execfile(os.path.join(nextSikuli, "script2.py"))

script2.sikuli must be in same folder as script1.sikuli

to get the parent folder in version 1.0.1:
dir = os.path.dirname(os.path.dirname(getBundlePath()))

(this is a non-compat-bug and will be fixed in 1.1.0)

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to