← Back to team overview

sikuli-driver team mailing list archive

[Bug 1431694] Re: [request] locate any resource (folders/files) in the current runtime environment

 

** Changed in: sikuli
    Milestone: 2.0.0 => 2.1.0

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1431694

Title:
  [request] locate any resource (folders/files) in the current runtime
  environment

Status in Sikuli:
  In Progress

Bug description:
  Im trying to separate some parts of my scripts to reuse it

  Lets say I have a script that do something with a screen, we will call
  that script1.sikuli, this script have folders inside it with images or
  text files that can be accessed inside this script using
  getBundlePath() + "/subfolder". But when I import that script inside
  another, lets call that script script2.sikuli, getBundlePath() passes
  to point to the path of script2.

  How can I make script1 have notion of its own folder even after
  imported? I know how to hardcode that, getBundlePath() +
  "/../script1.sikuli" is any other better way of the script to know its
  own name even after imported?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1431694/+subscriptions


References