diff options
| author | Damien George | 2014-12-19 13:36:17 +0000 |
|---|---|---|
| committer | Damien George | 2014-12-19 13:36:17 +0000 |
| commit | 2a3e2b903394376fcf5722904453febd7472ee25 (patch) | |
| tree | 49da1c7af3fe1726a550c6a3ca189acdb5b838d6 /py/mpconfig.h | |
| parent | 8427c5b76c9326ab3bc060fb729c1f0dbe17facd (diff) | |
py: Add execfile function (from Python 2); enable in stmhal port.
Adds just 60 bytes to stmhal binary. Addresses issue #362.
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 880e46987..170033240 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -340,6 +340,11 @@ typedef double mp_float_t; #define MICROPY_PY_BUILTINS_COMPILE (0) #endif +// Whether to support the Python 2 execfile function +#ifndef MICROPY_PY_BUILTINS_EXECFILE +#define MICROPY_PY_BUILTINS_EXECFILE (0) +#endif + // Whether to set __file__ for imported modules #ifndef MICROPY_PY___FILE__ #define MICROPY_PY___FILE__ (1) |
