diff options
Diffstat (limited to 'pyload/remote/thriftbackend/ThriftTest.py')
-rw-r--r-- | pyload/remote/thriftbackend/ThriftTest.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pyload/remote/thriftbackend/ThriftTest.py b/pyload/remote/thriftbackend/ThriftTest.py index 05c6ba40e..c9c0d3cf3 100644 --- a/pyload/remote/thriftbackend/ThriftTest.py +++ b/pyload/remote/thriftbackend/ThriftTest.py @@ -1,10 +1,13 @@ # -*- coding: utf-8 -*- +import os +import platform import sys -from os.path import join, abspath, dirname -path = join((abspath(dirname(__file__))), "..", "..", "lib") -sys.path.append(path) +if "64" in platform.machine(): + sys.path.append(os.path.join(pypath, "lib64")) +sys.path.append(os.path.join(pypath, "lib")) + from pyload.remote.thriftbackend.thriftgen.pyload import Pyload from pyload.remote.thriftbackend.thriftgen.pyload.ttypes import * |