annotate 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 |
rev |
line source |
1489
|
1 import nimpy
|
|
2
|
|
3 proc setup_python(): PyObject =
|
|
4 let sys = pyImport("sys")
|
|
5 discard sys.path.extend([
|
|
6 ".", # for devices.py itself
|
|
7 "env/lib/python3.7/site-packages" # for deeper imports
|
|
8 ])
|
|
9
|
|
10 pyImport("devices")
|
|
11
|
|
12
|
|
13 echo "iot2_linux starting"
|
|
14
|
|
15 let devices = setup_python()
|
|
16 discard devices.hello()
|