From 9274245a0b6f178d0d83fc14b9f618f332413a2c Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 8 Mar 2024 14:10:19 -0800 Subject: [PATCH] test(test_whisper.py): fix getting path for audio file in test --- tests/test_whisper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_whisper.py b/tests/test_whisper.py index 9090f42d6..78e885ad3 100644 --- a/tests/test_whisper.py +++ b/tests/test_whisper.py @@ -8,7 +8,8 @@ import sys, os, dotenv from typing import Optional from dotenv import load_dotenv -pwd = os.getcwd() +# Get the current directory of the file being run +pwd = os.path.dirname(os.path.realpath(__file__)) print(pwd) file_path = os.path.join(pwd, "gettysburg.wav")