aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/snekbox.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/cogs/snekbox.py b/bot/cogs/snekbox.py
index 2a68950bb..f49526884 100644
--- a/bot/cogs/snekbox.py
+++ b/bot/cogs/snekbox.py
@@ -15,6 +15,9 @@ RMQ_ARGS = {
}
CODE_TEMPLATE = """
+venv_file = "/snekbox/.venv/bin/activate_this.py"
+exec(open(venv_file).read(), dict(__file__=venv_file))
+
try:
{CODE}
except Exception as e: