File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818# ignore failure to make this testable outside of the target platform
1919try :
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
2224except 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?)
You can’t perform that action at this time.
0 commit comments