大修参数,改prusa版本到2.9.4

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-29 01:01:24 +08:00
parent 2dbecfe0d4
commit 72e3a165ac
21 changed files with 402 additions and 306 deletions

View File

@@ -31,7 +31,7 @@ class PrusaSlicerEngine:
try:
# Base command
command = [
"prusa-slicer",
"/home/lhye200/AIO_3D_Print_Exp/prusaslicer/prusa-slicer",
"-g", stl_filepath,
"--output", gcode_filepath
]
@@ -82,7 +82,7 @@ class PrusaSlicerEngine:
tmp_ini_filename = f"tmp_{uuid.uuid4().hex}.ini"
tmp_ini_path = os.path.join(app.config['UPLOAD_FOLDER'], tmp_ini_filename)
# print(all_configs)
print(f'****tmp_ini_path: {tmp_ini_path}')
with open(tmp_ini_path, 'w') as f:
for key, value in all_configs.items():
f.write(f"{key} = {value}\n")