From: Samuele P. <ped...@bl...> - 2001-11-28 21:14:40
|
[Titus Brown] > -> Please add a print statement to your test1.py, > -> and try again with your experiments. > -> > -> You will be even more disillusioned > -> but it will make for a more coherent report ;). > > Yeah, I've done that, too... but it wasn't relevant to the jythonc report ;). > > What Samuele is referring to: > > --- test4.py > print 'hi' > --- > > 'jython test4.py' will produce 'hi' > > 'jythonc -j out.jar test4.py' followed by an 'import test4' in jython with > out.jar in the classpath will produce nothing, you have to do > > import test4 > test4.main([]) > > Nonetheless, I don't see this as a problem related to my first set of > questions -- is it? > It seems not, but sorry and better so, I was confused by your report, you are not :) > I can't figure out what makes some things work and others not; are there any > hints that anyone can give me? (I'd compile jython myself and just put > printlns in, but I can't compile it at the moment.) The answer: don't expect jythonc to cope properly with program-driven changes to sys.path and similar dynamic stuff. jythonc is a *static* tool. regards. |