Skip to content

Commit

Permalink
auto-rebuild if settings indicates old gpkit version
Browse files Browse the repository at this point in the history
  • Loading branch information
bqpd committed Oct 8, 2019
1 parent e44f232 commit 4a08554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gpkit/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def load_settings(path=None, firstattempt=True):
value.remove("mosek")
except IOError:
settings_ = {"installed_solvers": [""]}
if settings_["installed_solvers"] == [""]:
if (settings_["installed_solvers"] == [""]
or ("mosek" in settings_["installed_solvers"]
and "mosek_version" not in settings_)):
if firstattempt:
print("Found no installed solvers, beginning a build.")
build()
Expand Down

0 comments on commit 4a08554

Please sign in to comment.