bugfix: about dialog ni deloval pri tipični namestitvi
This commit is contained in:
@@ -34,12 +34,12 @@ import urllib.request
|
||||
import tempfile
|
||||
from db_schema import create_tables
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
APPINFO_PATH = os.path.join(BASE_DIR, 'appinfo.json')
|
||||
|
||||
DB_PATH = 'songs.db'
|
||||
SETTINGS_PATH = 'settings.json'
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
class SongProjector:
|
||||
def __init__(self, root):
|
||||
self.root = root
|
||||
@@ -726,7 +726,7 @@ class SongProjector:
|
||||
def show_app_info_tkinter(self):
|
||||
"""Prikaže informacije o aplikaciji v glavnem oknu (ukaz 9900)."""
|
||||
try:
|
||||
with open('appinfo.json', 'r', encoding='utf-8') as f:
|
||||
with open(APPINFO_PATH, 'r', encoding='utf-8') as f:
|
||||
info = json.load(f)
|
||||
|
||||
self.cursor.execute("SELECT COUNT(*) FROM songs")
|
||||
|
||||
Reference in New Issue
Block a user