Skip to content

Commit

Permalink
V1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
5axes committed Apr 8, 2021
1 parent 1c539fb commit 8fd703a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions CalibrationShapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# V1.1.3 : Remove for the moment Junction deviation tower... waiting for User feedback
# V1.2.0 : Linear/Pressure Adv Tower by dotdash32 https://github.com/dotdash32
# V1.2.1 : Change CopyScript condition to fileSize
# V1.2.2 : Error correction
#-----------------------------------------------------------------------------------
from PyQt5.QtCore import QObject, pyqtProperty, pyqtSignal, pyqtSlot, QUrl
from PyQt5.QtGui import QDesktopServices
Expand Down Expand Up @@ -214,7 +215,7 @@ def copyScript(self) -> None:
# Logger.log("d", "plugPath= %s", plugPath)

stringMatch = re.split("plugins", plugPath)
destPath = stringMatch[0] + "scripts"
destPath = os.path.join(stringMatch[0], "scripts")
nbfile=0
# Copy the script
for fl in File_List:
Expand All @@ -238,11 +239,11 @@ def copyScript(self) -> None:
txt_Message = ""
if nbfile > 0 :
txt_Message = str(nbfile) + " script(s) copied in :\n"
txt_Message = txt_Message + os.path.join(destPath, "scripts")
txt_Message = txt_Message + destPath
txt_Message = txt_Message + "\nYou must now restart Cura to see the scripts in the postprocessing script list"
else:
txt_Message = "Every script are up to date in :\n"
txt_Message = txt_Message + os.path.join(destPath, "scripts")
txt_Message = txt_Message + destPath

self._message = Message(catalog.i18nc("@info:status", txt_Message), title = catalog.i18nc("@title", "Calibration Shapes"))
self._message.show()
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Calibration Shapes",
"author": "5axes",
"version": "1.2.1",
"version": "1.2.2",
"description": "Adds test parts and simple shapes to the build plate",
"api": 7,
"supported_sdk_versions": ["7.0.0", "7.1.0", "7.2.0", "7.3.0", "7.4.0"],
Expand Down

0 comments on commit 8fd703a

Please sign in to comment.