From f1a20ba26fda68993325b16196f563e6aeebe60c Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 24 May 2013 00:14:23 +0200 Subject: improvements to json api --- module/remote/create_apitypes.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'module/remote/create_apitypes.py') diff --git a/module/remote/create_apitypes.py b/module/remote/create_apitypes.py index 7755b5c57..d596f07ac 100644 --- a/module/remote/create_apitypes.py +++ b/module/remote/create_apitypes.py @@ -3,19 +3,18 @@ import re import inspect -import sys from os.path import abspath, dirname, join path = dirname(abspath(__file__)) -module = join(path, "..", "..") - -sys.path.append(join(module, "lib")) -sys.path.append(join(module, "remote")) +root = abspath(join(path, "..", "..")) from thrift.Thrift import TType from thriftgen.pyload import ttypes from thriftgen.pyload import Pyload +# TODO: import and add version +# from pyload import CURRENT_VERSION + type_map = { TType.BOOL: 'bool', TType.DOUBLE: 'float', -- cgit v1.2.3