Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1021195 // AIRIS basic_example.py [dev.]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 36155K of libraries. Click here for Pure Java version (5929L/42K).

!7

lib 1400166 // jython 2.7

import org.python.core.*;
import org.python.util.*;

p-exp {
  File dir = userDir("dev/AIRIS_Public-master");
  time "Make Interpreter" {
    PythonInterpreter.initialize(new Properties, litprop("python.path" := f2s(dir)), new S[0]);
    new PythonInterpreter py;
  }
  py.execfile(f2s(newFile(dir, "basic_example_jython.py")));
}

Author comment

Began life as a copy of #1021053

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1021195
Snippet name: AIRIS basic_example.py [dev.]
Eternal ID of this version: #1021195/1
Text MD5: ab533b670799e94702690d2ccfc4e2a9
Transpilation MD5: 073ac68d852304ae1808d9271ce521e8
Author: stefan
Category: javax / a.i. / airis
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-02 16:17:29
Source code size: 375 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 437 / 1023
Referenced in: