mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 11:26:11 +00:00
1f4339bed2
* Call PyErr_Print() in QtResImport() * Fix Jupyter
18 lines
286 B
Python
18 lines
286 B
Python
import json
|
|
from _cutter import *
|
|
|
|
try:
|
|
from CutterBindings import *
|
|
|
|
def core():
|
|
return CutterCore.instance()
|
|
except ImportError:
|
|
pass
|
|
|
|
|
|
def cmdj(command):
|
|
"""Execute a JSON command and return the result as a dictionary"""
|
|
return json.loads(cmd(command))
|
|
|
|
|