From 7c326024d3119622e07353a2b9ef44183e51015b Mon Sep 17 00:00:00 2001 From: ValekoZ Date: Wed, 5 Jun 2024 14:11:09 +0200 Subject: [PATCH] Move activate_script_path --- gef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gef.py b/gef.py index 94cd9e2cf..0abc0b484 100644 --- a/gef.py +++ b/gef.py @@ -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