mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-30 04:00:50 +01:00
update g-python requirements and initialization
This commit is contained in:
parent
eefd1bade5
commit
58988eece5
@ -10,7 +10,7 @@ import java.util.List;
|
||||
|
||||
public class GPythonVersionUtils {
|
||||
|
||||
private static final String MIN_GPYTHON_VERSION = "0.1";
|
||||
private static final String MIN_GPYTHON_VERSION = "0.1.2";
|
||||
private static final String MIN_PYTHON_VERSION = "3.2";
|
||||
|
||||
// returns null if python not installed
|
||||
|
@ -3,8 +3,8 @@ from time import sleep
|
||||
from g_python.gextension import Extension
|
||||
from g_python.hmessage import Direction, HMessage
|
||||
from g_python.hpacket import HPacket
|
||||
from g_python import hparsers
|
||||
from g_python import htools
|
||||
from g_python import hparsers, hunityparsers
|
||||
from g_python import htools, hunitytools
|
||||
|
||||
extension_info = {"title": "$G_PYTHON_SHELL_TITLE$", "description": "G-Python scripting console", "version": "1.0", "author": ""}
|
||||
|
||||
@ -24,7 +24,7 @@ def send_to_server(packet): return ext.send_to_server(packet)
|
||||
def on_event(event_name: str, func): return ext.on_event(event_name, func)
|
||||
|
||||
|
||||
def intercept(direction: Direction, callback, id=-1): return ext.intercept(direction, callback, id)
|
||||
def intercept(direction: Direction, callback, id=-1, mode='default'): return ext.intercept(direction, callback, id, mode)
|
||||
|
||||
|
||||
def start(): return ext.start()
|
||||
|
Loading…
Reference in New Issue
Block a user