How can I add jars to the classpath when I invoke Jython *without* adding them to $CLASSPATH?

后端 未结 4 1862
无人共我
无人共我 2020-12-12 18:50

I\'d like to do something similar to jython -cp FOO:BAR:BAZ argle.py.

If I add FOO, BAR, and BAZ to $CLASSP

4条回答
  •  误落风尘
    2020-12-12 19:41

    You can use the -D option to set python.path:

    jython -Dpython.path=FOO:BAR:BAZ argyle.py
    

提交回复
热议问题