Skip to content

Commit

Permalink
Some planning for #19
Browse files Browse the repository at this point in the history
  • Loading branch information
ensonic committed Jan 19, 2018
1 parent 54c83a7 commit 76cfad4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions roberta/lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
# ignore failure to make this testable outside of the target platform
try:
from ev3dev import auto as ev3dev
# TODO: prefer the module updated from the server
# sys.path.prepend(os.path.expanduser('~/.local/python/roberta')
from .ev3 import Hal
except ImportError:
from .test import Ev3dev as ev3dev
Expand Down Expand Up @@ -401,8 +403,10 @@ def run(self):
self.service.hal.resetState()
self.service.status('registered')
elif cmd == 'update':
# FIXME:
# fetch new files (menu/hal)
# FIXME: implement
# ensure local module dir
# os.mkdirs('os.path.expanduser('~/.local/python/roberta/'))
# fetch ev3.py and store to ~/.local/python/roberta/
# then restart:
# os.execv(__file__, sys.argv)
# check if we need to close files (logger?)
Expand Down

0 comments on commit 76cfad4

Please sign in to comment.