summaryrefslogtreecommitdiff
path: root/src/scripts/pyolian/eolian_lib.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-03-16 20:00:49 +0100
committerDave Andreoli <dave@gurumeditation.it>2018-03-16 20:00:49 +0100
commit81d15b7cd83ff6e29a82041ec50ebf52234cb7b6 (patch)
tree74dc0930f5bff2e2e7b2ae59c87f16d243bec60a /src/scripts/pyolian/eolian_lib.py
parent7784405ad91f5c6e89a72dd4bec938480a2da087 (diff)
Pyolian: add support EOLIAN_SO_DIR env var
Thanks goes to @lauromoura for proposing this in D5840
Diffstat (limited to '')
-rw-r--r--src/scripts/pyolian/eolian_lib.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scripts/pyolian/eolian_lib.py b/src/scripts/pyolian/eolian_lib.py
index 99d862a8de..4b792657d2 100644
--- a/src/scripts/pyolian/eolian_lib.py
+++ b/src/scripts/pyolian/eolian_lib.py
@@ -11,10 +11,13 @@ import os
11script_path = os.path.dirname(os.path.realpath(__file__)) 11script_path = os.path.dirname(os.path.realpath(__file__))
12root_path = os.path.abspath(os.path.join(script_path, '..', '..', '..')) 12root_path = os.path.abspath(os.path.join(script_path, '..', '..', '..'))
13 13
14search_in = ( 14search_in = [
15 os.path.join(root_path, 'src', 'lib', 'eolian', '.libs'), 15 os.path.join(root_path, 'src', 'lib', 'eolian', '.libs'),
16 os.path.join(root_path, 'build', 'src', 'lib', 'eolian'), 16 os.path.join(root_path, 'build', 'src', 'lib', 'eolian'),
17) 17]
18
19if 'EOLIAN_SO_DIR' in os.environ:
20 search_in.insert(0, os.environ['EOLIAN_SO_DIR'])
18 21
19search_names = ('libeolian.so', 'eolian.dll') 22search_names = ('libeolian.so', 'eolian.dll')
20 23