Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bqpd committed Sep 4, 2019
1 parent dd583ac commit 9d62362
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion gpkit/_mosek/expopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"""
from __future__ import unicode_literals, print_function
from os import path, sep
from ctypes import pointer as ptr
from ctypes import c_double, c_int, CFUNCTYPE
from .baked_ctypesgen import load_library, String, c_void, POINTER, UNCHECKED
Expand Down Expand Up @@ -89,7 +90,8 @@ def c_array(py_array, c_type):
return (c_type * len(pya))(*pya)


MSK = ModuleShortener("MSK", load_library(settings["mosek_lib_path"]))
LIB = path.abspath(__file__).replace("expopt.py", "build%sexpopt.so" % sep)
MSK = ModuleShortener("MSK", load_library(LIB))

MSK_RES_OK = 0
MSK_IPAR_INTPNT_MAX_ITERATIONS = 19
Expand Down
2 changes: 0 additions & 2 deletions gpkit/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,6 @@ def build(self):
if built_expopt_lib != 0:
return False

settings["mosek_lib_path"] = pathjoin(solib_dir, "expopt.so")

return True


Expand Down

0 comments on commit 9d62362

Please sign in to comment.