Skip to content

Commit 35259d9

Browse files
committed
fix running on linux
1 parent 6acf161 commit 35259d9

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Extract the .zip to a folder of your choice and set the `GEOFILES` and `LD_LIBRA
2424

2525
```shell
2626
$ export GEOFILES=/var/geosupport/version-17c/fls
27-
$ export LD_LIBRARY_PATH=/var/geosupport/version-17c/lib/
27+
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/geosupport/version-17c/lib/
2828
```
2929

3030
### Install python-geosupport

geosupport/geosupport.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ def __init__(self):
2323
elif self.platform.startswith('linux'):
2424
import os
2525
from ctypes import cdll
26-
self.geolib = cdll.LoadLibrary(
27-
os.path.join(os.environ['LD_LIBRARY_PATH'], "libgeo.so")
28-
)
26+
self.geolib = cdll.LoadLibrary("libgeo.so")
2927
else:
3028
raise Exception('This Operating System is currently not supported.')
3129
except OSError as e:

0 commit comments

Comments
 (0)