Skip to content

Commit

Permalink
fix: lib name on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Dec 8, 2024
1 parent 793d8d9 commit 0467306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyaec/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyaec"
version = "1.0.0"
version = "1.0.1"
description = "Acoustic echo cancellation"
readme = "README.md"
authors = [
Expand Down
8 changes: 3 additions & 5 deletions pyaec/src/pyaec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

def load_library():
try:
lib_name = "libaec" + (
".dll"
if platform.system() == "Windows"
else ".so" if platform.system() == "Linux" else ".dylib"
)
ext = ".dll" if platform.system() == "Windows" else ".so" if platform.system() == "Linux" else ".dylib"
lib_name = "aec" + ext if platform.system() == "Windows" else 'libaec' + ext

# Same dir as this file
lib_path = os.path.join(os.path.dirname(__file__), lib_name)

Expand Down

0 comments on commit 0467306

Please sign in to comment.