Skip to content

Commit

Permalink
enable running jython from a directory with an exclamation mark in it…
Browse files Browse the repository at this point in the history
…'s name

due to jdk limitations this is only possible for
 + jdk 1.6 and higher
 + directory names not ending with an exclamation mark

due to the special treatment of exclamation marks in enabledelayedexpansion, this is currently not possible for jython.bat on windows

installer autotests now use an exclamation mark if possible
  • Loading branch information
ohumbel committed Jan 18, 2009
1 parent d1d3479 commit 59b8b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/python/core/PySystemState.java
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ private static String getJarFileName() {
if (url != null) {
try {
String urlString = URLDecoder.decode(url.toString());
int jarSeparatorIndex = urlString.indexOf(JAR_SEPARATOR);
int jarSeparatorIndex = urlString.lastIndexOf(JAR_SEPARATOR);
if (urlString.startsWith(JAR_URL_PREFIX) && jarSeparatorIndex > 0) {
jarFileName = urlString.substring(JAR_URL_PREFIX.length(), jarSeparatorIndex);
}
Expand Down

0 comments on commit 59b8b20

Please sign in to comment.