annotate service/iot2/iot2_linux.nim @ 688:7ac46dc29517
get some iot2 tests going
Ignore-this: cdfdf88f445f043aa5aa55f737f6b776
author |
drewp@bigasterisk.com |
date |
Tue, 21 Jan 2020 23:59:45 -0800 |
parents |
|
children |
e3eceee54937 |
rev |
line source |
688
|
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()
|