summarylogtreecommitdiffstats
path: root/0001-archlinux-Use-standard-path-for-libplaysound.so-load.patch
blob: 2b078327a828b95cfe4142a2b19de465a834a6db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 370535f413903330138a2aa5109fb7f51f3cf6a3 Mon Sep 17 00:00:00 2001
From: KokaKiwi <kokakiwi+git@kokakiwi.net>
Date: Tue, 13 Sep 2022 19:41:09 +0200
Subject: [PATCH] archlinux: Use standard path for libplaysound.so loading

---
 playsound/__init__.py | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/playsound/__init__.py b/playsound/__init__.py
index 92ffc1b..2547925 100644
--- a/playsound/__init__.py
+++ b/playsound/__init__.py
@@ -1,7 +1,5 @@
 import ctypes
 import logging
-import sys
-from pathlib import Path
 
 
 def playsound(file, volume):
@@ -12,15 +10,4 @@ def playsound(file, volume):
     logging.info("[Playsound] playing %s", file)
     _playsound.playsound(file.encode("utf-8"), volume)
 
-_playsound = ctypes.cdll.LoadLibrary(
-    str(
-        Path(__file__).parent / (
-            "libplaysound." +
-            {
-                sys.platform: "so",
-                "win32": "dll",
-                "darwin": "osx.so"
-            }[sys.platform]
-        )
-    )
-)
+_playsound = ctypes.cdll.LoadLibrary('/usr/lib/pokete/libplaysound.so')
-- 
2.40.0