Skip to content

Commit

Permalink
Tweak if -version doesn't work with xppaut
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Dec 6, 2023
1 parent eb50821 commit cd528ee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions omv/engines/xpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ def is_installed():
r = check_output(
[environment_vars["XPP_HOME"] + "/xppaut", "-version"], verbosity=2
)
ret = "%s" % r.split()[2]
if not "v" in ret:
ret = "v%s" % ret
if "Problem" in r:
ret = 'v???'

else:
ret = "%s" % r.split()[2]
if not "v" in ret:
ret = "v%s" % ret

inform("XPP %s is correctly installed..." % ret, indent=2, verbosity=1)

Expand Down

0 comments on commit cd528ee

Please sign in to comment.