mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 10:31:39 +02:00
🔥 codecs
This commit is contained in:
@@ -4,7 +4,6 @@ from __future__ import print_function
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import argparse
|
import argparse
|
||||||
import codecs
|
|
||||||
|
|
||||||
from homeassistant import bootstrap
|
from homeassistant import bootstrap
|
||||||
import homeassistant.config as config_util
|
import homeassistant.config as config_util
|
||||||
@@ -182,7 +181,7 @@ def install_osx():
|
|||||||
|
|
||||||
path = os.path.expanduser("~/Library/LaunchAgents/org.homeassistant.plist")
|
path = os.path.expanduser("~/Library/LaunchAgents/org.homeassistant.plist")
|
||||||
|
|
||||||
with codecs.open(path, 'w', 'utf-8') as outp:
|
with open(path, 'w', encoding='utf-8') as outp:
|
||||||
outp.write(plist)
|
outp.write(plist)
|
||||||
|
|
||||||
os.popen('launchctl load -w -F ' + path)
|
os.popen('launchctl load -w -F ' + path)
|
||||||
|
Reference in New Issue
Block a user