Skip to content

Commit

Permalink
Kappy: add alternate dune bin dir
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinepouille committed Mar 25, 2024
1 parent 9c1050c commit 08f8727
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kappy/kappa_std.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
from .kappa_graph import KappaSnapshot

def find_agent_bin():
dune_build_dir = '_build/install/default'
potential_dirs = []
for base_dir in [KAPPY_DIR, KASIM_DIR]:
for dune_build_dir in ['', '_build/install/default', '_build/default']:
potential_dirs.append(os.path.join(base_dir, dune_build_dir)
agent_names = ['KappaSwitchman']
bin_dir = None
for potential_dir in [KAPPY_DIR, KASIM_DIR, os.path.join(KAPPY_DIR, dune_build_dir), os.path.join(KASIM_DIR, dune_build_dir)]:
for potential_dir in potential_dirs:
bin_dir = os.path.join(potential_dir, 'bin')
if not os.path.exists(bin_dir):
continue
Expand Down

0 comments on commit 08f8727

Please sign in to comment.