1import json 2from _cutter import * 3 4try: 5 from CutterBindings import * 6 7 def core(): 8 return CutterCore.instance() 9except ImportError: 10 pass 11 12 13def cmdj(command): 14 """Execute a JSON command and return the result as a dictionary""" 15 return json.loads(cmd(command)) 16 17 18