Changes between Version 11 and Version 12 of pyrunner


Ignore:
Timestamp:
12/04/23 12:00:46 (15 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pyrunner

    v11 v12  
    3030 * Pass your targz directly into the PythonVenv constructor
    3131 * or if you dont have a targz, copy the code into E.
    32 * E.call the code you want to run
     32* call the code you want to run eg from PythonVenvTest.java:
     33{{{
     34 PythonVenv env = new PythonVenv(
     35        new File("src/test/resources/helloworld-1.0.0.tar.gz"), logger);
     36 String res = env.call(Arrays.asList("-c","import helloworld; helloworld.helloworld()"), 40000);
     37}}}
    3338* call E.remove to remove the venv
    3439