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.
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.