cutter/src/python/cutter.py
Florian Märkl 1f4339bed2
Fix Jupyter (#1223)
* Call PyErr_Print() in QtResImport()

* Fix Jupyter
2019-02-27 14:54:47 +01:00

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))