[Jython-checkins] jython: Use classpath wildcard

jim.baker jython-checkins at python.org
Fri Feb 20 00:43:19 CET 2015


https://hg.python.org/jython/rev/2c38c3c3b49a
changeset:   7590:2c38c3c3b49a
user:        Jim Baker <jim.baker at rackspace.com>
date:        Thu Feb 19 16:41:54 2015 -0700
summary:
  Use classpath wildcard

files:
  src/shell/jython.py |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/src/shell/jython.py b/src/shell/jython.py
--- a/src/shell/jython.py
+++ b/src/shell/jython.py
@@ -162,8 +162,7 @@
             return self._classpath
         if os.path.exists(os.path.join(self.jython_home, "jython-dev.jar")):
             jars = [os.path.join(self.jython_home, "jython-dev.jar")]
-            for jar in glob.iglob(os.path.join(self.jython_home, "javalib", "*.jar")):
-                jars.append(jar)
+            jars.append(os.path.join(self.jython_home, "javalib", "*"))
         elif not os.path.exists(os.path.join(self.jython_home, "jython.jar")): 
             self.parser.error(
 """{executable}:

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list