Skip to content

Commit 1688640

Browse files
committed
Fix usage of activation sound when using pip install
1 parent 9ba497b commit 1688640

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include precise/data/activate.wav
File renamed without changes.

precise/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ def play_audio(filename: str):
8080

8181
def activate_notify():
8282
audio = 'data/activate.wav'
83-
audio = abspath(dirname(abspath(__file__)) + '/../' + audio)
84-
83+
audio = join(dirname(abspath(__file__)), audio)
8584
play_audio(audio)
8685

8786

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
'precise-calc-threshold=precise.scripts.calc_threshold:main',
7070
]
7171
},
72-
package_data={'precise': ['data/activate.wav']},
72+
include_package_data=True,
7373
install_requires=[
7474
'numpy==1.16',
7575
'tensorflow>=1.13,<1.14', # Must be on piwheels

0 commit comments

Comments
 (0)