refactor: modularizar como PocketSync con soporte de perfiles
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user