|
|
dce4b14 |
From e6d577b6055dfc460204ff1c17a9bd89cc078f1a Mon Sep 17 00:00:00 2001
|
|
|
0cc9008 |
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
|
|
|
0cc9008 |
Date: Thu, 8 Oct 2020 21:32:44 +0100
|
|
|
4c00d82 |
Subject: [PATCH 5/6] Correct librxdmath path for 64bit
|
|
|
0cc9008 |
|
|
|
0cc9008 |
---
|
|
|
0cc9008 |
share/lib/python/neuron/rxd/rxd.py | 5 ++++-
|
|
|
0cc9008 |
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
0cc9008 |
|
|
|
0cc9008 |
diff --git a/share/lib/python/neuron/rxd/rxd.py b/share/lib/python/neuron/rxd/rxd.py
|
|
|
0cc9008 |
index 0242652f..afd1dd04 100644
|
|
|
0cc9008 |
--- a/share/lib/python/neuron/rxd/rxd.py
|
|
|
0cc9008 |
+++ b/share/lib/python/neuron/rxd/rxd.py
|
|
|
0cc9008 |
@@ -457,7 +457,10 @@ def _find_librxdmath():
|
|
|
0cc9008 |
base_path = os.path.join(h.neuronhome(), "..", "..", platform.machine())
|
|
|
0cc9008 |
if not os.path.exists(base_path):
|
|
|
0cc9008 |
base_path = os.path.join(h.neuronhome(), "..", "..")
|
|
|
0cc9008 |
- base_path = os.path.join(base_path, "lib", "librxdmath")
|
|
|
0cc9008 |
+ if platform.architecture()[0] == "64bit":
|
|
|
0cc9008 |
+ base_path = os.path.join(base_path, "lib64", "librxdmath")
|
|
|
0cc9008 |
+ else:
|
|
|
0cc9008 |
+ base_path = os.path.join(base_path, "lib", "librxdmath")
|
|
|
0cc9008 |
success = False
|
|
|
0cc9008 |
for extension in ['', '.dll', '.so', '.dylib']:
|
|
|
0cc9008 |
dll = base_path + extension
|
|
|
0cc9008 |
--
|
|
|
0cc9008 |
2.28.0
|
|
|
0cc9008 |
|