Added profile system to voice mixer, improvements in code

This commit is contained in:
Deniz Şafak
2025-05-02 12:10:08 +03:00
parent 4acf70954e
commit 02b9990004
22 changed files with 1137 additions and 90 deletions
+5 -3
View File
@@ -33,8 +33,10 @@ def get_resource_path(package, resource):
pass
# Always try to resolve as a relative path from this file
parts = package.split('.')
rel_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), *parts[1:], resource)
parts = package.split(".")
rel_path = os.path.join(
os.path.dirname(os.path.abspath(__file__)), *parts[1:], resource
)
if os.path.exists(rel_path):
return rel_path
@@ -56,7 +58,7 @@ def get_resource_path(package, resource):
def get_version():
"""Return the current version of the application."""
try:
with open(get_resource_path("abogen", "VERSION"), "r") as f:
with open(get_resource_path("/", "VERSION"), "r") as f:
return f.read().strip()
except Exception:
return "Unknown"