Mercurial > code > home > repos > homeauto
view service/iot2/iot2_linux.nim @ 1489:a4fb4cc60ae1
get some iot2 tests going
Ignore-this: cdfdf88f445f043aa5aa55f737f6b776
darcs-hash:f0dc8fe99648fd4f7a3870c2b564ae1e4c85fdd9
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Tue, 21 Jan 2020 23:59:45 -0800 |
parents | |
children | e3eceee54937 |
line wrap: on
line source
import nimpy proc setup_python(): PyObject = let sys = pyImport("sys") discard sys.path.extend([ ".", # for devices.py itself "env/lib/python3.7/site-packages" # for deeper imports ]) pyImport("devices") echo "iot2_linux starting" let devices = setup_python() discard devices.hello()