From: <pj...@us...> - 2009-01-31 02:20:53
|
Revision: 6003 http://jython.svn.sourceforge.net/jython/?rev=6003&view=rev Author: pjenvey Date: 2009-01-31 02:20:48 +0000 (Sat, 31 Jan 2009) Log Message: ----------- make --version resemble CPython Modified Paths: -------------- trunk/jython/src/org/python/util/jython.java Modified: trunk/jython/src/org/python/util/jython.java =================================================================== --- trunk/jython/src/org/python/util/jython.java 2009-01-29 20:51:21 UTC (rev 6002) +++ trunk/jython/src/org/python/util/jython.java 2009-01-31 02:20:48 UTC (rev 6003) @@ -11,6 +11,7 @@ import java.util.zip.ZipEntry; import java.util.zip.ZipFile; +import org.python.Version; import org.python.core.Options; import org.python.core.Py; import org.python.core.PyCode; @@ -119,8 +120,7 @@ CommandLineOptions opts = new CommandLineOptions(); if (!opts.parse(args)) { if (opts.version) { - PySystemState.determinePlatform(System.getProperties()); - System.err.println(InteractiveConsole.getDefaultBanner()); + System.err.println("Jython " + Version.PY_VERSION); System.exit(0); } if (!opts.runModule) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |