mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 15:31:52 -05:00
Keep the config directory out of sys.path in the container (#180967)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user