From c52c15cef23bdbf9ec246039d1178529f631fa28 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 31 Mar 2020 17:04:06 +0530 Subject: Fix for #2 --- src/VaporSong.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/VaporSong.py') diff --git a/src/VaporSong.py b/src/VaporSong.py index bb75646..aaa55b9 100644 --- a/src/VaporSong.py +++ b/src/VaporSong.py @@ -3,6 +3,8 @@ import subprocess import re from random import randint +from sys import platform + import logzero from logzero import logger from logzero import setup_logger @@ -49,7 +51,7 @@ class VaporSong: # TODO: Move away from executable and use aubio's Python module def fetchbeats(src): beat_matrix = [] - if os.name == 'posix': + if platform == 'darwin': beats = subprocess.check_output(["noah", "get-beats",src]).rstrip() else: beats = subprocess.check_output(["get-beats",src]).rstrip() -- cgit v1.2.3