a0ef53922e
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
539 B
Python
27 lines
539 B
Python
import os
|
|
import sys
|
|
import tkinter as tk
|
|
|
|
# Asegurar que el directorio raíz esté en el path para imports relativos
|
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
if BASE_DIR not in sys.path:
|
|
sys.path.insert(0, BASE_DIR)
|
|
|
|
from core.config import ConfigManager
|
|
from ui.app import PocketSyncApp
|
|
|
|
CONFIG_FILE = os.path.join(BASE_DIR, "config.json")
|
|
|
|
|
|
def main() -> None:
|
|
cm = ConfigManager(CONFIG_FILE)
|
|
cm.load()
|
|
|
|
root = tk.Tk()
|
|
PocketSyncApp(root, cm)
|
|
root.mainloop()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|