Skip to content

Commit

Permalink
Changed loading from analysis file
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Jul 19, 2024
1 parent 5e9ad22 commit f6f411a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dynapyt/run_instrumentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ def instrument_dir(
start = directory
all_cmds = []

if isinstance(analysis, str) and Path(analysis).exists():
try:
with open(analysis, "r") as f:
analysis = [ana.strip() for ana in f.read().split("\n")]
except FileNotFoundError:
pass

if use_external_dir:
external_path = Path(start) / "dynapyt_analysis"
Expand Down

0 comments on commit f6f411a

Please sign in to comment.