update os to getpass

This commit is contained in:
aryan 2024-09-04 12:31:01 -06:00
parent 2cb1587b23
commit 89c67eaf62

View file

@ -1,11 +1,11 @@
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
import os import getpass
from pathlib import Path from pathlib import Path
import argparse import argparse
def vm_start(nographic=False): def vm_start(nographic=False):
home = Path.home() home = Path.home()
user = os.getuser() user = getpass.getuser()
image_src = "var/lib/debian.qcow2" image_src = "var/lib/debian.qcow2"
vm_storage_location = f"/home/arvp/virtual_machines/{user}.qcow2" vm_storage_location = f"/home/arvp/virtual_machines/{user}.qcow2"
image_dest = f"{home}/debian.qcow2" image_dest = f"{home}/debian.qcow2"