mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Use material.fdm_material.xml.sig for signature file names
Just put the .sig after the entire file instead of replacing the extension. Contributes to issue CURA-5034.
This commit is contained in:
parent
abf77da4c4
commit
0da7ad3946
1 changed files with 1 additions and 2 deletions
|
@ -33,8 +33,7 @@ class SendMaterialJob(Job):
|
|||
with open(file_path, "rb") as f:
|
||||
parts.append(self.device._createFormPart("name=\"file\"; filename=\"{file_name}\"".format(file_name = file_name), f.read()))
|
||||
|
||||
without_extension, _ = os.path.splitext(file_path)
|
||||
signature_file_path = without_extension + ".sig"
|
||||
signature_file_path = file_path + ".sig"
|
||||
if os.path.exists(signature_file_path):
|
||||
_, signature_file_name = os.path.split(signature_file_path)
|
||||
with open(signature_file_path, "rb") as f:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue