Rename path to configpath
Rename path to configpath to match naming scheme of logpath
This commit is contained in:
parent
0141b5e130
commit
53cb69e416
|
@ -72,7 +72,7 @@ class KlipperPlugin(
|
|||
)]
|
||||
),
|
||||
configuration = dict(
|
||||
path="~/printer.cfg",
|
||||
configpath="~/printer.cfg",
|
||||
logpath="/tmp/klippy.log",
|
||||
reload_command="RESTART"
|
||||
)
|
||||
|
@ -82,7 +82,7 @@ class KlipperPlugin(
|
|||
data = octoprint.plugin.SettingsPlugin.on_settings_load(self)
|
||||
|
||||
filepath = os.path.expanduser(
|
||||
self._settings.get(["configuration", "path"])
|
||||
self._settings.get(["configuration", "configpath"])
|
||||
)
|
||||
try:
|
||||
f = open(filepath, "r")
|
||||
|
@ -98,7 +98,7 @@ class KlipperPlugin(
|
|||
if "config" in data:
|
||||
try:
|
||||
filepath = os.path.expanduser(
|
||||
self._settings.get(["configuration", "path"])
|
||||
self._settings.get(["configuration", "configpath"])
|
||||
)
|
||||
data["config"] = data["config"].encode('utf-8')
|
||||
|
||||
|
@ -123,7 +123,7 @@ class KlipperPlugin(
|
|||
return dict(
|
||||
admin=[
|
||||
["connection", "port"],
|
||||
["configuration", "path"],
|
||||
["configuration", "configpath"],
|
||||
["configuration", "replace_connection_panel"]
|
||||
],
|
||||
user=[
|
||||
|
|
Loading…
Reference in New Issue