allowing directory import
This commit is contained in:
@@ -1,9 +1,15 @@
|
|||||||
# this program will record audio while the button is pressed
|
# this program will record audio while the button is pressed
|
||||||
# it will then play the audio back to the user from memory
|
# it will then play the audio back to the user from memory
|
||||||
|
|
||||||
import audio.audio
|
|
||||||
import RPi.GPIO as GPIO
|
import RPi.GPIO as GPIO
|
||||||
|
|
||||||
|
# importing sys
|
||||||
|
import sys
|
||||||
|
# adding Folder_2/subfolder to the system path
|
||||||
|
sys.path.insert(0, '/home/talksik/rpi-random-projects/audio')
|
||||||
|
|
||||||
|
import audio
|
||||||
|
|
||||||
BUTTON = 17
|
BUTTON = 17
|
||||||
|
|
||||||
GPIO.setmode(GPIO.BCM)
|
GPIO.setmode(GPIO.BCM)
|
||||||
|
|||||||
Reference in New Issue
Block a user