Skip to content

Commit

Permalink
Move activate_script_path
Browse files Browse the repository at this point in the history
  • Loading branch information
ValekoZ committed Jun 5, 2024
1 parent f5f1bc5 commit 7c32602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -9949,8 +9949,8 @@ def load_plugins_from_directory(plugin_directory: pathlib.Path):

def load_virtualenv(self, new_path: Optional[pathlib.Path] = None):
path = new_path or gef.config["gef.virtualenv_path"]
activate_script_path = pathlib.Path(path) / "bin" / "activate_this.py"
if path:
activate_script_path = pathlib.Path(path)/"bin"/"activate_this.py"
exec(open(activate_script_path).read(), {'__file__': activate_script_path})

@property
Expand Down

0 comments on commit 7c32602

Please sign in to comment.