Update documentation

Clarify why the last two items are removed from the list
This commit is contained in:
Jelle Spijker 2022-07-18 10:35:55 +02:00 committed by GitHub
parent b969764c1c
commit 470bb7300c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: