mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Remove unused environment util
This commit is contained in:
parent
fce8815ab4
commit
0b8e097705
@ -1,13 +0,0 @@
|
||||
"""
|
||||
homeassistant.util.environement
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Environement helpers.
|
||||
"""
|
||||
import sys
|
||||
|
||||
|
||||
def is_virtual():
|
||||
""" Return if we run in a virtual environtment. """
|
||||
# Check supports venv && virtualenv
|
||||
return (getattr(sys, 'base_prefix', sys.prefix) != sys.prefix or
|
||||
hasattr(sys, 'real_prefix'))
|
Loading…
x
Reference in New Issue
Block a user