From 55307e2087aa78a3cd54f2c7cdeeb7302bd1eae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C7=9Du=C4=B1=C9=A5suoo=C9=AF?= <687747+MoonshineSG@users.noreply.github.com> Date: Tue, 8 May 2018 10:42:46 +0800 Subject: [PATCH] Fix new file analysis --- octoprint_multi_colors/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_multi_colors/__init__.py b/octoprint_multi_colors/__init__.py index d5c579e..784cec8 100644 --- a/octoprint_multi_colors/__init__.py +++ b/octoprint_multi_colors/__init__.py @@ -63,7 +63,7 @@ def on_api_command(self, command, data): self.save_regex(data.get('find_string')) gcode_file = os.path.join(self._settings.global_get_basefolder('uploads'), data.get('file') ) - gcode_file_multi = os.path.join(self._settings.global_get_basefolder('uploads'), self.rename(data.get('file')) ) + gcode_file_multi = os.path.join(self._settings.global_get_basefolder('watched'), self.rename(data.get('file')) ) work_copy = "%s.tmp"%gcode_file copyfile(gcode_file, work_copy)