2019-02-19 13:09:32 -05:00
|
|
|
#!/usr/bin/python3
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2023-05-04 17:21:54 -03:00
|
|
|
"""
|
|
|
|
This module contains a class named Lab and some supporting code.
|
|
|
|
The Lab class represents a virtual lab and has a dictionary attribute VBOX
|
|
|
|
containing information about the virtual machines in the lab.
|
|
|
|
"""
|
2019-02-19 13:09:32 -05:00
|
|
|
|
|
|
|
import getpass
|
|
|
|
from sys import platform
|
|
|
|
import os
|
|
|
|
|
|
|
|
user = getpass.getuser()
|
|
|
|
|
2023-09-05 11:22:45 -03:00
|
|
|
USERNAME = "sysadmin"
|
|
|
|
|
2023-05-04 17:21:54 -03:00
|
|
|
if platform in ("win32", "win64"):
|
|
|
|
LOGPATH = "C:\\Temp\\pybox_logs"
|
2019-02-19 13:09:32 -05:00
|
|
|
else:
|
2023-05-04 17:21:54 -03:00
|
|
|
homedir = os.environ["HOME"]
|
2023-06-28 08:25:21 -03:00
|
|
|
LOGPATH = f"{homedir}/vbox_installer_logs"
|