Keep the config directory out of sys.path in the container (#180967)

This commit is contained in:
Franck Nijhof
2026-09-01 01:34:09 +02:00
committed by GitHub
parent 1c7a6b6def
commit 6bcf91b361
+2 -1
View File
@@ -15,4 +15,5 @@ if [[ -n "${DISABLE_JEMALLOC+x}" ]]; then
bashio::log.warning "DISABLE_JEMALLOC is set but no longer has any effect: jemalloc has been replaced by mimalloc. Set PYTHONMALLOC=pymalloc to use the default allocator instead."
fi
exec python3 -m homeassistant --config /config
# -P keeps the working directory out of sys.path, so /config cannot shadow imports.
exec python3 -P -m homeassistant --config /config