From d0f5e61ab58892ecd3b0838adeea3cde330da3f1 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 25 Jul 2014 11:00:15 +0300 Subject: py: Implement __file__ attribute for modules. --- py/qstrdefs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'py/qstrdefs.h') 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__) -- cgit v1.2.3