sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36493
[Bug 1269650] Re: [1.0.1] getBundlePath() adds extra slash at end --- fixed in 1.1.0
Everywhere I look suggests that the correct way to get the bundle path
for opening other files you want to keep in your bundle is like this:
os.path.dirname(getBundlePath())
However, without the trailing slash, this returns the parent directory
of the Sikuli bundle, not the sikuli bundle itself. Since the bundle is
a directory, then os.path.dirname(getBundlePath()) should return that
directory.
I think this 'fix' actually breaks the desired behaviour.
getBundlePath() should return the path OF the bundle, not the path TO
the bundle.
--
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 --- fixed in 1.1.0
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