mirror of
https://github.com/home-assistant/core.git
synced 2026-09-25 17:04:04 -04:00
Keep the config directory out of sys.path in the container (#180967)
This commit is contained in:
committed by
Bram Kragten
parent
47295cb2d7
commit
ae16e7196c
@@ -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