[1.0.1] getBundlePath() adds extra slash at end --- fixed in 1.1.0
Bug #1269650 reported by
Zed
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
Using getBundlePath() yields "/path/
Because of this change, os.path.
Changed in sikuli: | |
importance: | High → Critical |
summary: |
- [1.0.1] getBundlePath() adds extra slash at end + [1.0.1] getBundlePath() adds extra slash at end --- fixed in 1.1.0 |
To post a comment you must log in.
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: getBundlePath( )[:-1]
def getBundlePath(): return Sikuli.
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) getBundlePath( )
def getBundlePath():
return ImageLocator.
to getBundlePath( )[:-1]
def getBundlePath():
return ImageLocator.