sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31041
[Bug 1431694] [NEW] [request] locate any resource (folders/files) in the current runtime environment
Public bug reported:
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?
** Affects: sikuli
Importance: Medium
Assignee: RaiMan (raimund-hocke)
Status: In Progress
** Changed in: sikuli
Status: New => In Progress
** Changed in: sikuli
Importance: Undecided => Medium
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 2.0.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
Follow ups
References