Added icons for flags, improvements in voice mixer

This commit is contained in:
Deniz Şafak
2025-04-30 18:45:02 +03:00
parent 04e16722e2
commit 4acf70954e
15 changed files with 61 additions and 40 deletions
+6
View File
@@ -32,6 +32,12 @@ def get_resource_path(package, resource):
except (ImportError, FileNotFoundError):
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)
if os.path.exists(rel_path):
return rel_path
# Fallback to local file system
try:
# Extract the subdirectory from package name (e.g., 'assets' from 'abogen.assets')