Skip to content

Commit

Permalink
switching from active_prefix to target_prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
travishathaway committed Jul 19, 2023
1 parent 62ca41c commit 55a1420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guard/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def conda_guard_pre_commands_action(command: str):

if lookup_attr is None or value is None:
lookup_attr = "path"
value = Path(context.active_prefix)
value = Path(context.target_prefix)

# Create a list of guarded environments; length should be zero or one
guarded_envs = [
Expand Down

0 comments on commit 55a1420

Please sign in to comment.