Skip to content

Commit

Permalink
remove dead, untested, and undocumented MOPAC_DIR lines
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns authored and rwest committed May 10, 2023
1 parent 3b444a9 commit b20c813
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions rmgpy/qm/mopac.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,7 @@ class Mopac(object):
input_file_extension = ".mop"
output_file_extension = ".out"

try:
executable_path = distutils.spawn.find_executable("mopac")
except:
logging.debug(
"Did not find mopac on path, checking if it exists in a declared MOPAC_DIR..."
)
mopacEnv = os.getenv("MOPAC_DIR", default="/opt/mopac")
executable_path = os.path.join(mopacEnv, "mopac")
if not os.path.exists(executable_path):
executable_path = os.path.join(mopacEnv, "(MOPAC 2009 or 2012 or 2016)")
executable_path = distutils.spawn.find_executable("mopac")

use_polar = False # use polar keyword in MOPAC

Expand Down

0 comments on commit b20c813

Please sign in to comment.