Question #288674 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/288674
Status: Open => Answered
RaiMan proposed the following answer:
if it helps:
os.path.dirname(currentPath)
strips the last portion in the path, that is not terminated with a
slash/backslash.
BTW: you can work totally with forward slashes instead of backslashes to
avoid the various methods to tell Jython about backslashes.
so
print os.path.dirname("C:/xy/mydir")
should print
C:/xy
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp