From acc46fc3497a66a427b795b4a22c6e71d69185a1 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 13 Dec 2014 15:56:57 +0100 Subject: Update --- pyload/remote/socketbackend/create_ttypes.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'pyload/remote/socketbackend') diff --git a/pyload/remote/socketbackend/create_ttypes.py b/pyload/remote/socketbackend/create_ttypes.py index cf357bd53..5bfbcafa0 100644 --- a/pyload/remote/socketbackend/create_ttypes.py +++ b/pyload/remote/socketbackend/create_ttypes.py @@ -1,11 +1,16 @@ # -*- coding: utf-8 -*- import inspect +import os +import platform import sys -from os.path import abspath, dirname, join -sys.path.append(join(pypath, "pyload", "lib")) -sys.path.append(join(pypath, "pyload", "remote")) + +if "64" in platform.machine(): + sys.path.append(os.path.join(pypath, "lib64")) +sys.path.append(os.path.join(pypath, "lib")) + +sys.path.append(os.path.join(pypath, "pyload", "remote")) from pyload.remote.thriftbackend.thriftgen.pyload import ttypes from pyload.remote.thriftbackend.thriftgen.pyload.Pyload import Iface @@ -30,7 +35,7 @@ def main(): enums.append(klass) - f = open(join(pypath, "pyload", "api", "types.py"), "wb") + f = open(os.path.join(pypath, "pyload", "api", "types.py"), "wb") f.write( """# -*- coding: utf-8 -*- -- cgit v1.2.3