-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Jonas Wedin edited this page Apr 19, 2015
·
4 revisions
If you don't want to copy paste the files to every project you do , you can import it by appending it to the sys.path
Example:
import sys
sys.path.append('lingon-gpio/')
import Sr04Controller
I'm very new to python so i dont know if this is the right way to do it, but it works
You may also want to rename them since the names are quite long
Example:
import Sr04Controller as sr04
sensor = sr04.Sr04Controller(21,25)