🔥 codecs
This commit is contained in:
parent
37cd62447e
commit
fb29611c15
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue