简体   繁体   中英

pydev eclipse, jython scripting , syspath

PyDev has its own jython interpreter, inside pydev.jython.VERSION

that jython has its own python libraries ie pydev.jython.VERSION/LIB/zipfile.py

Now if I write a jython script for pydev-jython-scripting, it will load only its internal Lib pydev.jython.VERSION/LIB/

How do I have this pydev-jython recognize PYTHONPATH , I tried appending to sys.path but there is some python version problem some invalid syntax

My system python installation has all the .py source, my pydev interpreter configuration has python interpreter setup and NOT jython and NOT ironpython

pydev-jython script does not recognize many of regular system python modules, why?

The version that PyDev uses internally is Jython 2.1, so, you can't add newer libraries to that version unless they're compatible...

If you need to use a different version, you'd need to first update the version used inside PyDev itself (it wasn't updated so far because the current Jython size is too big -- PyDev has currently 7.5 MB and just the newer Jython jar is 10 MB -- with libs it goes to almost 16 MB, so making PyDev have 22 MB just for this upgrade is something I'm trying to avoid... now, I think there's probably too much bloat there in Jython, so, if that can be removed, it's something that may be worth revisiting...).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM