We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48eb0ed commit b79b2e9Copy full SHA for b79b2e9
pymode/run.py
@@ -28,7 +28,10 @@ def run_code():
28
lines.pop(ix)
29
30
context = dict(
31
- __name__='__main__', input=env.user_input, raw_input=env.user_input)
+ __name__='__main__',
32
+ __file__=env.var('expand("%:p")'),
33
+ input=env.user_input,
34
+ raw_input=env.user_input)
35
36
sys.stdout, stdout_ = StringIO(), sys.stdout
37
sys.stderr, stderr_ = StringIO(), sys.stderr
0 commit comments