From 6e0e59823ba584eee67f9db7728c58f59fe0e023 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 16 Feb 2024 17:46:05 +0900 Subject: [PATCH] ports/unix: Make MICROPY_PY_SYS_EXECUTABLE overridable. Signed-off-by: YAMAMOTO Takashi --- ports/unix/mpconfigport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/unix/mpconfigport.h b/ports/unix/mpconfigport.h index 1086baea06..3265ca84e8 100644 --- a/ports/unix/mpconfigport.h +++ b/ports/unix/mpconfigport.h @@ -155,7 +155,9 @@ typedef long mp_off_t; #define MICROPY_PY_SYS_PATH_ARGV_DEFAULTS (0) // Enable sys.executable. +#ifndef MICROPY_PY_SYS_EXECUTABLE #define MICROPY_PY_SYS_EXECUTABLE (1) +#endif #define MICROPY_PY_SOCKET_LISTEN_BACKLOG_DEFAULT (SOMAXCONN < 128 ? SOMAXCONN : 128)