Message11448
I think I found the problem.
In the source file "org/python/core/Py.java" you find the method "public static String getJarFileNameFromURL(URL url)" at line 2633. Inside this method, the offending code is at line 2647:
###################################################################################
int start = JAR_URL_PREFIX.length();
if (Platform.IS_WINDOWS) {
start++;
}
jarFileName = urlString.substring(start, jarSeparatorIndex);
###################################################################################
On Windows, a network path has an URL like "jar:file://MY-PC/Shared/Jython/jython.jar". However, the instruction "start++" clips one of the slashes away, resulting in "/MY-PC/Shared" instead of "//MY-PC/Shared".
I do not know why this "start++"-instruction is there in the first place. It was obviously not there in Jython 2.7.0. After eliminating it, Jython can be run from a network path without any problems again. Yet, I might be wrong and the actual problem might be found elsewhere. |
|
Date |
User |
Action |
Args |
2017-06-25 21:46:41 | tkohn | set | messageid: <1498427201.59.0.435154500347.issue2599@psf.upfronthosting.co.za> |
2017-06-25 21:46:41 | tkohn | set | recipients:
+ tkohn |
2017-06-25 21:46:41 | tkohn | link | issue2599 messages |
2017-06-25 21:46:41 | tkohn | create | |
|