
Removal of the --username argument from Parser and pass V_BOX_OPTIONS.username value in the install_vbox.py Closes-Bug: 2028861 Change-Id: I68422f5b436ea1d1f75a9272fb0ee3811453e846 Signed-off-by: Daniel Caires <daniel.caires@encora.com>
24 lines
530 B
Python
24 lines
530 B
Python
#!/usr/bin/python3
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
"""
|
|
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.
|
|
"""
|
|
|
|
import getpass
|
|
from sys import platform
|
|
import os
|
|
|
|
user = getpass.getuser()
|
|
|
|
USERNAME = "sysadmin"
|
|
|
|
if platform in ("win32", "win64"):
|
|
LOGPATH = "C:\\Temp\\pybox_logs"
|
|
else:
|
|
homedir = os.environ["HOME"]
|
|
LOGPATH = f"{homedir}/vbox_installer_logs" |