Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbac375

Browse files
committed
Append to LD_LIBRARY_PATH
1 parent fc6eacb commit bbac375

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

mikecore/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import platform
33
from pathlib import Path
44

5-
__version__ = "0.1.4"
5+
__version__ = "0.2.1"
66

77
p = platform.architecture()
88
if not "64" in p[0]:
@@ -16,7 +16,12 @@
1616
else:
1717
raise Exception("Unsupported platform: " + platform.system())
1818

19-
os.environ["LD_LIBRARY_PATH"] = mikebin
19+
if "LD_LIBRARY_PATH" in os.environ:
20+
ld_library_path = os.environ["LD_LIBRARY_PATH"]
21+
if mikebin not in ld_library_path:
22+
os.environ["LD_LIBRARY_PATH"] += ":" + mikebin
23+
else:
24+
os.environ["LD_LIBRARY_PATH"] = mikebin
2025

2126
from mikecore.DfsDLL import DfsDLL
2227
from mikecore.eum import eumDLL

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="mikecore",
8-
version="0.1.4",
8+
version="0.2.1",
99
install_requires=["numpy"],
1010
author="DHI",
1111
author_email="[email protected]",

0 commit comments

Comments
 (0)