diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-07-25 11:00:15 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-07-28 21:21:59 +0300 |
| commit | d0f5e61ab58892ecd3b0838adeea3cde330da3f1 (patch) | |
| tree | 670466ad2dd5bda38156c7b584ab9e1b28fec6e3 /py/qstrdefs.h | |
| parent | 645582fe14b10daa938bcabd86054ea23ea9eb08 (diff) | |
py: Implement __file__ attribute for modules.
Diffstat (limited to 'py/qstrdefs.h')
| -rw-r--r-- | py/qstrdefs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index 0deb646c7..27b695722 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -43,6 +43,9 @@ Q(__next__) Q(__qualname__) Q(__path__) Q(__repl_print__) +#if MICROPY_PY___FILE__ +Q(__file__) +#endif Q(__bool__) Q(__contains__) |
