From b759587599dd6dd5e24e1596d94aa4245647ad03 Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Fri, 3 Jul 2015 09:17:42 -0700 Subject: [PATCH] fix machine.ini write and flip endstop min/max --- octoprint_GPX/__init__.py | 2 +- octoprint_GPX/templates/GPX_settings.jinja2 | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/octoprint_GPX/__init__.py b/octoprint_GPX/__init__.py index ad53e00..5c99947 100644 --- a/octoprint_GPX/__init__.py +++ b/octoprint_GPX/__init__.py @@ -125,7 +125,7 @@ def fetch_machine_ini(self, machineid): profile_path = os.path.join(data_folder, machineid + ".ini") from .iniparser import IniParser machine_ini = IniParser(profile_path, self._logger) - if os.path.isdir(profile_folder) and os.path.exists(profile_path) and os.path.isfile(profile_path): + if os.path.isdir(data_folder) and os.path.exists(profile_path) and os.path.isfile(profile_path): try: machine_ini.read() self._logger.info("Read machine definition from %s" % profile_path) diff --git a/octoprint_GPX/templates/GPX_settings.jinja2 b/octoprint_GPX/templates/GPX_settings.jinja2 index f7d3899..4932126 100644 --- a/octoprint_GPX/templates/GPX_settings.jinja2 +++ b/octoprint_GPX/templates/GPX_settings.jinja2 @@ -156,18 +156,18 @@ {{ _('Home:') }}