WIP:aryan/build #2

Draft
chopper wants to merge 7 commits from aryan/build into main
Showing only changes of commit 89c67eaf62 - Show all commits

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()
Outdated
Review

Documentation suggests using getuser

Documentation suggests using [getuser](https://docs.python.org/3/library/getpass.html#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"