summaryrefslogtreecommitdiffstats
path: root/pyload/remote/socketbackend
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-13 15:56:57 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-13 15:56:57 +0100
commitacc46fc3497a66a427b795b4a22c6e71d69185a1 (patch)
tree2d315b838a76435fc456b972c99c28d1732b2f70 /pyload/remote/socketbackend
parentCode fixes (diff)
downloadpyload-acc46fc3497a66a427b795b4a22c6e71d69185a1.tar.xz
Update
Diffstat (limited to 'pyload/remote/socketbackend')
-rw-r--r--pyload/remote/socketbackend/create_ttypes.py13
1 files changed, 9 insertions, 4 deletions
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 -*-