Message1100

Author leouserz
Recipients
Date 2007-01-12.21:12:42
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
the answer may be to change in javapath.py:
def abspath(path):

    path = _tostr(path, "abspath")

    return File(path).getAbsolutePath()


to

def abspath(path):

    path = _tostr(path, "abspath")

    return File(path).getCanonicalPath()

using getCanonicalFile on Windows gives me the same answer as the python example above.

The javadoc for getCanonicalPath states:
 A canonical pathname is both absolute and unique. The precise definition of canonical form is system-dependent. This method first converts this pathname to absolute form if necessary, as if by invoking the getAbsolutePath() method, and then maps it to its unique form in a system-dependent way. This typically involves removing redundant names such as "." and ".." from the pathname, resolving symbolic links (on UNIX platforms), and converting drive letters to a standard case (on Microsoft Windows platforms).
History
Date User Action Args
2008-02-20 17:17:27adminlinkissue1423047 messages
2008-02-20 17:17:27admincreate