From d43ae0fa591cabc84bee2a916f5b69fb14bc5d32 Mon Sep 17 00:00:00 2001
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
Date: Thu, 8 Oct 2020 21:32:44 +0100
Subject: [PATCH 05/11] Correct librxdmath path for 64bit
---
share/lib/python/neuron/rxd/rxd.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/share/lib/python/neuron/rxd/rxd.py b/share/lib/python/neuron/rxd/rxd.py
index 698381dfe..29f42d203 100644
--- a/share/lib/python/neuron/rxd/rxd.py
+++ b/share/lib/python/neuron/rxd/rxd.py
@@ -500,10 +500,13 @@ def _find_librxdmath():
base_path = os.path.join(h.neuronhome(), "..", "..", platform.machine())
if not os.path.exists(base_path):
base_path = os.path.join(h.neuronhome(), "..", "..")
- base_path = os.path.join(base_path, "lib", "librxdmath")
- success = False
- for extension in ["", ".dll", ".so", ".dylib"]:
- dll = base_path + extension
+ if platform.architecture()[0] == "64bit":
+ base_path = os.path.join(base_path, "lib64", "librxdmath")
+ else:
+ base_path = os.path.join(base_path, "lib", "librxdmath")
+ success = False
+ for extension in ['', '.dll', '.so', '.dylib']:
+ dll = base_path + extension
try:
success = os.path.exists(dll)
except:
--
2.39.1