From f4110b40a38b3f5e8f85072ed013b3c870426690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 4 Aug 2022 15:35:45 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20Virtual=20Printer:=20Lowerca?= =?UTF-8?q?se=20only=20filename=20on=20SD=20(#4607)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lowercasing entire path causes wrong dir to be used in some cases like .octoprint/virtualsd instead of .octoprint/virtualSd. --- src/octoprint/plugins/virtual_printer/virtual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/virtual_printer/virtual.py b/src/octoprint/plugins/virtual_printer/virtual.py index 19262d7aa..0c1325f44 100644 --- a/src/octoprint/plugins/virtual_printer/virtual.py +++ b/src/octoprint/plugins/virtual_printer/virtual.py @@ -1778,7 +1778,7 @@ class VirtualPrinter: filename = filename if filename.startswith("/"): filename = filename[1:] - file = os.path.join(self._virtualSd, filename).lower() + file = os.path.join(self._virtualSd, filename.lower()) if os.path.exists(file): if os.path.isfile(file): os.remove(file) From f217ef31963aba0f4a52eedbdea536932ec11ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Mon, 8 Aug 2022 19:21:36 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9D=20Add=20hint=20on=20how=20to?= =?UTF-8?q?=20rebuild=20CSS=20files.=20(#4614)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/development/environment.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/development/environment.rst b/docs/development/environment.rst index b6d62c708..f7c3753a5 100644 --- a/docs/development/environment.rst +++ b/docs/development/environment.rst @@ -57,6 +57,7 @@ When the virtual environment is activated you can then: * run the test suite from the checked out source folder via ``pytest`` * trigger the pre-commit check suite manually from the checked out source folder via ``pre-commit run --hook-stage manual --all-files`` + * rebuild ``.css`` files from ``.less`` sources. See ``octoprint dev css:build --help`` * build the documentation running ``sphinx-build -b html . _build`` in the ``docs`` folder -- the documentation will be available in the newly created ``_build`` directory. You can simply browse it locally by opening ``index.html``