aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
Diffstat (limited to 'klippy')
-rw-r--r--klippy/configfile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/configfile.py b/klippy/configfile.py
index 71f5ca60..55aed295 100644
--- a/klippy/configfile.py
+++ b/klippy/configfile.py
@@ -255,7 +255,8 @@ class PrinterConfig:
self._parse_config_buffer(buffer, filename, fileconfig)
visited.remove(path)
def _build_config_wrapper(self, data, filename):
- fileconfig = configparser.RawConfigParser(strict=False)
+ fileconfig = configparser.RawConfigParser(
+ strict=False, inline_comment_prefixes=(';','#'))
self._parse_config(data, filename, fileconfig, set())
return ConfigWrapper(self.printer, fileconfig, {}, 'printer')
def _build_config_string(self, config):