@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user