← Back to team overview

sikuli-driver team mailing list archive

[Bug 1269650] Re: getBundlePath() adds extra slash at end in version 1.0.1

 

Uuups, I was not aware of that -- interesting, that you are the first
complaining about that.

I will fix it with version 1.1.0

Until then a workaround is to put in scripts using it at the top:
def getBundlePath(): return Sikuli.getBundlePath()[:-1]

this would (temporarily) override the function (drawback: has to be
deleted again with 1.1.0)

If you are familiar with unzipping jar's and zipping them back with Java's jar utility:
all Sikuli jars contain a folder /Lib/sikuli containing the Sikuli.py

change (at line 140)
def getBundlePath():
    return ImageLocator.getBundlePath()

to
def getBundlePath():
    return ImageLocator.getBundlePath()[:-1]



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

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

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

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

** Summary changed:

- getBundlePath() adds extra slash at end in version 1.0.1
+ [1.0.1] getBundlePath() adds extra slash at end

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

Title:
  [1.0.1] getBundlePath() adds extra slash at end

Status in Sikuli:
  Fix Committed

Bug description:
  Using getBundlePath() yields "/path/to/bundle.sikuli/ " as opposed to
  "/path/to/bundle.sikuli", which was the behavior in previous versions.

  Because of this change, os.path.dirname(getBundlePath()) stops giving
  you "/path/to" and instead gives you '/path/to/bundle.sikuli", which a
  rather annoying inconvenience.

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


References