summaryrefslogtreecommitdiff
path: root/sci-mathematics/stp/files/stp-2.3.3-stp.py-library_path.patch
blob: 60b54aa2c1dab955b559909582258e59abfe956a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
index 61aef6d..16633e8 100644
--- a/bindings/python/stp/stp.py.in
+++ b/bindings/python/stp/stp.py.in
@@ -42,7 +42,10 @@ Py3 = sys.version_info >= (3, 0, 0)
 if Py3:
     long = int
 
-from library_path import PATHS
+try:
+    from .library_path import PATHS
+except ImportError:
+    from library_path import PATHS
 
 for path in PATHS:
     if not os.path.exists(path):