Skip to content

Commit

Permalink
Bug in finding MOPAC exec
Browse files Browse the repository at this point in the history
  • Loading branch information
emarinri committed Nov 22, 2019
1 parent d663c30 commit 84ea107
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/mopac_exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ def mopac_exists():
try:
mopac_path = os.path.split(os.environ['mopac'])[0]
except KeyError:
mopac_path = os.environ['MOPAC_LICENSE']
except KeyError:
raise FileNotFoundError('The MOPAC executable could not be found')
try:
mopac_path = os.environ['MOPAC_LICENSE']
except KeyError:
return False

mopac_exe = mopac_path + 'MOPAC2016.exe'

Expand Down

0 comments on commit 84ea107

Please sign in to comment.