Browse Source

Update documentation

Clarify why the last two items are removed from the list
Jelle Spijker 2 years ago
parent
commit
470bb7300c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packaging/NSIS/create_windows_installer.py

+ 1 - 1
packaging/NSIS/create_windows_installer.py

@@ -32,7 +32,7 @@ def generate_nsi(source_path: str, dist_path: str, filename: str):
             for rmdir in rmdir_p.parents:
                 rmdir_paths.add(rmdir)
 
-    rmdir_paths = sorted(list(rmdir_paths), reverse = True)[:-2]
+    rmdir_paths = sorted(list(rmdir_paths), reverse = True)[:-2]  # Removes the `.` and `..` from the list
 
     jinja_template_path = Path(source_loc.joinpath("packaging", "NSIS", "Ultimaker-Cura.nsi.jinja"))
     with open(jinja_template_path, "r") as f: