mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Remove unused environment util
This commit is contained in:
@@ -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'))
|
Reference in New Issue
Block a user