Module anchorage.anchor_utils.system
System utilities
Expand source code
# SPDX-FileCopyrightText: © 2021 Antonio López Rivera <antonlopezr99@gmail.com>
# SPDX-License-Identifier: GPL-3.0-only
"""
System utilities
----------------
"""
import os
import platform
def operating_system():
"""
:return: Operating system of host machine.
"""
return platform.system().lower()
def home():
"""
:return: Directory of file currently being run.
"""
return os.environ['HOME']
Functions
def home()
-
:return: Directory of file currently being run.
Expand source code
def home(): """ :return: Directory of file currently being run. """ return os.environ['HOME']
def operating_system()
-
:return: Operating system of host machine.
Expand source code
def operating_system(): """ :return: Operating system of host machine. """ return platform.system().lower()