Hi, All
I run into one issue when running with :pyfile command.
here is my test.py file:
import os
print os.path.dirname(os.path.abspath(__file__)
I saved it in c:\test.py
Then I run :pyf c:\test.py. I suppose it should return "c:\"
However, it will say:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:/test.py", line 3, in <module>
print os.path.dirname(os.path.abspath(__file__))
NameError: name '__file__' is not defined
Is it a bug of vim? or how can I make it works.
Thanks,
-Mike Guo
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.