WIP:aryan/build #2
4
build.py
4
build.py
|
@ -1,11 +1,11 @@
|
|||
from subprocess import Popen, PIPE
|
||||
import os
|
||||
import getpass
|
||||
from pathlib import Path
|
||||
import argparse
|
||||
|
||||
def vm_start(nographic=False):
|
||||
home = Path.home()
|
||||
user = os.getuser()
|
||||
user = getpass.getuser()
|
||||
|
||||
image_src = "var/lib/debian.qcow2"
|
||||
vm_storage_location = f"/home/arvp/virtual_machines/{user}.qcow2"
|
||||
image_dest = f"{home}/debian.qcow2"
|
||||
|
|
Loading…
Reference in a new issue
Documentation suggests using getuser