From bb172d8c98d50bdea41081d21f331bda70f93343 Mon Sep 17 00:00:00 2001 From: Jon Maddox Date: Tue, 15 Sep 2015 02:58:13 -0400 Subject: [PATCH] indention --- homeassistant/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/__main__.py b/homeassistant/__main__.py index dc405b54af4f..428845031a56 100644 --- a/homeassistant/__main__.py +++ b/homeassistant/__main__.py @@ -163,16 +163,16 @@ def write_pid(pid_file): def install_osx(): """ Setup to run via launchd on OS X """ with os.popen('which hass') as inp: - hass_path = inp.read().strip() + hass_path = inp.read().strip() with os.popen('whoami') as inp: - user = inp.read().strip() + user = inp.read().strip() cwd = os.path.dirname(__file__) template_path = os.path.join(cwd, 'startup', 'launchd.plist') with open(template_path, 'r', encoding='utf-8') as inp: - plist = inp.read() + plist = inp.read() plist = plist.replace("$HASS_PATH$", hass_path) plist = plist.replace("$USER$", user) @@ -181,7 +181,7 @@ def install_osx(): try: with open(path, 'w', encoding='utf-8') as outp: - outp.write(plist) + outp.write(plist) except IOError as err: print('Unable to write to ' + path, err) return