Skip to content

Commit 76cfad4

Browse files
committed
Some planning for #19
1 parent 54c83a7 commit 76cfad4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

roberta/lab.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
# ignore failure to make this testable outside of the target platform
1919
try:
2020
from ev3dev import auto as ev3dev
21+
# TODO: prefer the module updated from the server
22+
# sys.path.prepend(os.path.expanduser('~/.local/python/roberta')
2123
from .ev3 import Hal
2224
except ImportError:
2325
from .test import Ev3dev as ev3dev
@@ -401,8 +403,10 @@ def run(self):
401403
self.service.hal.resetState()
402404
self.service.status('registered')
403405
elif cmd == 'update':
404-
# FIXME:
405-
# fetch new files (menu/hal)
406+
# FIXME: implement
407+
# ensure local module dir
408+
# os.mkdirs('os.path.expanduser('~/.local/python/roberta/'))
409+
# fetch ev3.py and store to ~/.local/python/roberta/
406410
# then restart:
407411
# os.execv(__file__, sys.argv)
408412
# check if we need to close files (logger?)

0 commit comments

Comments
 (0)