aboutsummaryrefslogtreecommitdiff
path: root/bulk-audio/bulk-audio.py
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-11-17 22:38:20 +0100
committerlonkaars <loek@pipeframe.xyz>2023-11-17 22:38:20 +0100
commitd6c2b4344a9ceb5ce156a4b1b2b7e649ebe49043 (patch)
tree7e51fb5becd8946585493a29c393b4b108b0a19d /bulk-audio/bulk-audio.py
parent882725dcd878172b477335039a4bbb07ea424fe4 (diff)
fix ./get path in python
Diffstat (limited to 'bulk-audio/bulk-audio.py')
-rwxr-xr-xbulk-audio/bulk-audio.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bulk-audio/bulk-audio.py b/bulk-audio/bulk-audio.py
index 2ac307e..536f146 100755
--- a/bulk-audio/bulk-audio.py
+++ b/bulk-audio/bulk-audio.py
@@ -8,6 +8,7 @@ import io
import argparse
from math import floor, log10
from time import sleep
+from pathlib import Path
real_stdout = sys.stdout
class TrashFileIO(object):
@@ -161,7 +162,7 @@ def main():
# run ./get to get audio data from stdout
# returns (exit_code, stdout_data)
def get(kanji, kana, source_list):
- args = ["./get"]
+ args = [Path(__file__).parent.joinpath("get")]
if source_list != None:
args.append("-s")
args.append(source_list)