← Back to team overview

sikuli-driver team mailing list archive

[Bug 1915397] [NEW] [2.0.4] addImagePath after runScript() --- fixed in 2.0.5

 

Public bug reported:

Hey Folks,

I build up lots of scripts, working together like a charm 😄 
I import different Sikuli Scripts by running the runScript() command and after finishing the script, it returns to my main script and starts another runScript() and so on...

So far I have to use the addImagePath of the main script after every runScript() to get the correct image path again.
My question is, is there a way to define a function, that the image path of the active script will be imported?

something like:

def AutoImportPath():
        addImagePath(of the actual path/sikuli.file of the working script)

is there a way to get the path and name of the working sikuli file?

I searched in python forums and here as well, but can't find a solution how to get this working.
any ideas?

this would clean up my code that much 😄

thx for your help!

greetings!

** Affects: sikuli
     Importance: Critical
     Assignee: RaiMan (raimund-hocke)
         Status: Fix Committed

** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => Critical

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 2.0.5

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

Title:
  [2.0.4] addImagePath after runScript() --- fixed in 2.0.5

Status in Sikuli:
  Fix Committed

Bug description:
  Hey Folks,

  I build up lots of scripts, working together like a charm 😄 
  I import different Sikuli Scripts by running the runScript() command and after finishing the script, it returns to my main script and starts another runScript() and so on...

  So far I have to use the addImagePath of the main script after every runScript() to get the correct image path again.
  My question is, is there a way to define a function, that the image path of the active script will be imported?

  something like:

  def AutoImportPath():
          addImagePath(of the actual path/sikuli.file of the working script)

  is there a way to get the path and name of the working sikuli file?

  I searched in python forums and here as well, but can't find a solution how to get this working.
  any ideas?

  this would clean up my code that much 😄

  thx for your help!

  greetings!

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