Skip to content

Commit

Permalink
allowed any extension for the AnyBodyCon executable
Browse files Browse the repository at this point in the history
  • Loading branch information
melund committed Oct 21, 2024
1 parent 99c2ee5 commit aad0372
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions anypytools/abcutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def execute_anybodycon(
macro.append("exit")

if not os.path.isfile(anybodycon_path):
raise IOError(f"Can not find anybodycon.exe: {anybodycon_path}")
raise IOError(f"Can not find anybodycon: {anybodycon_path}")

with open(macrofile_path, "w+b") as fh:
fh.write("\n".join(macro).encode("UTF-8"))
Expand Down Expand Up @@ -444,8 +444,8 @@ class AnyPyProcess(object):
This defaults to the number of logical CPU cores in the computer.
anybodycon_path : str, optional
Overwrite the default anybodycon.exe file to
use in batch processing. Defaults to what is found in the windows
registry.
use in batch processing. Defaults to 'AnyBodyCon' on path, or
to what is found in the windows registry.
timeout : int, optional
Maximum time (i seconds) a model can run until it is terminated.
Defaults to 3600 sec (1 hour).
Expand Down
2 changes: 1 addition & 1 deletion anypytools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def get_anybodycon_path() -> str | None:
If AnyBodyCon.exe is on path it will take precedence over
the registry lookup.
"""
anybodycon_path = shutil.which("AnyBodyCon.exe")
anybodycon_path = shutil.which("anybodycon")

if anybodycon_path:
return anybodycon_path
Expand Down

0 comments on commit aad0372

Please sign in to comment.