adding in sys path
This commit is contained in:
+11
-3
@@ -6,11 +6,19 @@
|
|||||||
|
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
# Get the current working directory
|
||||||
|
cwd = os.getcwd()
|
||||||
|
|
||||||
|
sys.path.append(cwd)
|
||||||
|
|
||||||
import RPi.GPIO as GPIO
|
|
||||||
import audio.audio as audio
|
|
||||||
import simple_recorder.apa102 as apa102
|
|
||||||
import requests
|
import requests
|
||||||
|
import simple_recorder.apa102 as apa102
|
||||||
|
import rpi-random-projects.audio.audio as audio
|
||||||
|
import RPi.GPIO as GPIO
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
API_URL = "http://192.168.50.159:5001/transcribe"
|
API_URL = "http://192.168.50.159:5001/transcribe"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user