About passing args to Jython

Евгений Король <[email protected]> Thu, 27 Jun 2019 11:31:03 +0500
Newsgroups gmane.comp.lang.jython.user
Message-ID <CA+Mbm5xSBL8py406mKto75Z4Pm62SrY37eyeiWyW-+=b95NguA@mail.gmail.com>
Hello. How to pass arguments from Java args to jython using JSR-223?
For example when i use code like this:

ScriptEngine engine = new ScriptEngineManager().getEngineByName("python");

        // Using the eval() method on the engine causes a direct
        // interpretataion and execution of the code string passed into it
        engine.eval("import sys");

How can i pass args to Jython?