适配spark-wine10

This commit is contained in:
2025-04-19 21:07:15 +08:00
parent 3272c825c6
commit a7bf65f407
4 changed files with 46 additions and 5 deletions

View File

@@ -28,8 +28,11 @@ class qemu:
self.vboxVersion = subprocess.getoutput(self.qemuPath + " --version")
def Create(self, type = "Windows7"):
if(not os.path.exists(self.name)):
os.makedirs(self.name)
try:
if(not os.path.exists(self.name)):
os.makedirs(self.name)
except:
pass
return 0
def CreateDisk(self, path: str, size: int):