Multiple .dmg files are present in a particular folder,Using python how could i mount those .dmg files iteratively. I tried the following code
import os
path = '/Users/kat/Desktop/pro'
os.chdir(path)
for i in os.scandir(path):
print(i)
os.system("hdiutil attach i")
But i get "hdiutil" command not found error.Any suggestions would be helpful.