I am converting a program from Batch to Python. Here is how I think I could do translate the Batch
%VBM% sharedfolder add %VMNAME% --name "LogDir" --hostpath %LogDir%
into:
os.execlp(VBM, 'sharedfolder', 'add', VMNAME, '--name', "LogDir",'--hostpath', LogDir)
My questions:
I decided to go ahead and use subprocess.call() and it works.