Message2226

Author otmarhumbel
Recipients
Date 2002-03-05.15:37:53
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=105844

Sorry but the two files javapath.py and javaos.py use 
import statements which are not compatible to the suggested 
patch:
This means that without a change to these 2 files, Jython 
21 can only be started if the package scan took place. We 
can fix that in applying the following changes.


javapath.py:
------------
replace 
  import java
with
  import sys
  sys.add_package( "java" )
  sys.add_package( "java.io" )
  sys.add_package( "java.lang" )
  

javaos.py:
----------
replace 
  import java
  from java.io import File, BufferedReader, 
InputStreamReader, IOException

with
  import sys   # move some lines upwards
  sys.add_package( "java" )
  sys.add_package( "java.io" )
  sys.add_package( "java.lang" )
  from java.io import BufferedReader
  from java.io import File
  from java.io import IOException
  from java.io import InputStreamReader
  from java.lang import Runtime
  from java.lang import System

and replace all occurrences of 'java.lang.' and 'java.io.' 
with '' (an empty string)

I hope this gives an idea!
Best wishes, 
Oti.
History
Date User Action Args
2008-02-20 17:18:17adminlinkissue525092 messages
2008-02-20 17:18:17admincreate