diff options
Diffstat (limited to 'sci-mathematics/stp/files/stp-2.3.3-stp.py-library_path.patch')
-rw-r--r-- | sci-mathematics/stp/files/stp-2.3.3-stp.py-library_path.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sci-mathematics/stp/files/stp-2.3.3-stp.py-library_path.patch b/sci-mathematics/stp/files/stp-2.3.3-stp.py-library_path.patch new file mode 100644 index 000000000000..60b54aa2c1da --- /dev/null +++ b/sci-mathematics/stp/files/stp-2.3.3-stp.py-library_path.patch @@ -0,0 +1,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): |