[1.1.0] Jython: Windows: getBundlePath: Leading slash in paths not accepted --- fixed 2015-05-21+

Bug #1457104 reported by Eugene Maslov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

Windows 7-64, Java SE RTE 1.7.0_45, SikuliX 1.1.0 (2015-05-20)

testbundle=getBundlePath()
print testbundle
print os.path.isdir(testbundle)

dirn=os.path.dirname(testbundle)
print dirn
print os.path.isdir(dirn)

Printed result:
/D:/Sikuli/CP2D.N/trytest.sikuli
False
/D:/Sikuli/CP2D.N
False

There are leading slashes, which seem to prevent finding the paths in the file system.

In version SikuliX 1.1.0 2014_09_18, the paths were printed without the leading slashes and were recognized well as directories.

Revision history for this message
RaiMan (raimund-hocke) wrote :

This works inside Java completely.

Did not realise the problem with Jython.

Fixed with tomorrows build.

Changed in sikuli:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
summary: - Leading slash in paths
+ [1.1.0] Jython: Windows: getBundlePath: Leading slash in paths not
+ accepted --- fixed 2015-05-21+
Revision history for this message
Eugene Maslov (emaslov1) wrote :

I confirm that the issue is fixed in SikuliX 1.1.0 (2015-05-21)

Printing:
D:/Sikuli/CP2D.N/trytest.sikuli
True
D:/Sikuli/CP2D.N
True

Thank you, Raimund!

Revision history for this message
RaiMan (raimund-hocke) wrote :

thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.