We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f48d68c commit b3e1f45Copy full SHA for b3e1f45
src/pyoptinterface/_src/gurobi.py
@@ -2,6 +2,7 @@
2
import platform
3
from pathlib import Path
4
import re
5
+import sys
6
import logging
7
from typing import Tuple, Union, overload
8
@@ -81,6 +82,14 @@ def detected_libraries():
81
82
except Exception:
83
pass
84
85
+ # conda/pixi environment
86
+ prefix = Path(sys.prefix)
87
+ dir = prefix / subdir
88
+ for path in dir.glob(suffix_pattern):
89
+ match = re.match(libname_pattern, path.name)
90
+ if match:
91
+ libs.append(str(path))
92
+
93
# default names
94
gurobi_names = [
95
"gurobi130",
0 commit comments