Skip to content

Commit 7d689dd

Browse files
authored
devtools: fix relative imports inside eval
1 parent db7abae commit 7d689dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/devtools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ async def aexec(code, event):
331331
'reply': await event.get_reply_message(),
332332
'chat': event.chat_id,
333333
'u': u,
334-
'__builtins__': __builtins__
334+
'__builtins__': __builtins__,
335+
'__name__': __name__
335336
}
336337

337338
# Format the async function definition

0 commit comments

Comments
 (0)