From 7d689dd7f116840e8ec6089373215cea78b3b543 Mon Sep 17 00:00:00 2001 From: Sipak Date: Thu, 5 Jun 2025 11:04:43 +0530 Subject: [PATCH] devtools: fix relative imports inside eval --- plugins/devtools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/devtools.py b/plugins/devtools.py index 4e6ce44..efb71c2 100644 --- a/plugins/devtools.py +++ b/plugins/devtools.py @@ -331,7 +331,8 @@ async def aexec(code, event): 'reply': await event.get_reply_message(), 'chat': event.chat_id, 'u': u, - '__builtins__': __builtins__ + '__builtins__': __builtins__, + '__name__': __name__ } # Format the async function definition