This commit is contained in:
Nolan Kovacs 2026-04-04 13:06:21 -04:00
parent e17d63ceeb
commit f75cceefd4
3 changed files with 11 additions and 1 deletions

View File

@ -996,6 +996,13 @@ def _fetch_edgar_bulk(close_map: dict[str, pd.Series]) -> dict[str, dict]:
# Analyst + Fundamentals Cache (Verimund API) # Analyst + Fundamentals Cache (Verimund API)
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
if not getattr(sys, "frozen", False):
import os as _os
_root = _os.path.dirname(_os.path.dirname(_os.path.abspath(__file__)))
if _root not in sys.path:
sys.path.insert(0, _root)
del _os
try: try:
from license_check import _API_URL as _API_URL, get_api_headers as _get_api_headers from license_check import _API_URL as _API_URL, get_api_headers as _get_api_headers
except ImportError: except ImportError:

View File

@ -14,6 +14,9 @@ import sys
import tkinter as tk import tkinter as tk
from tkinter import messagebox from tkinter import messagebox
# Add dist/ to path so screener_gui and stock_screener are importable
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "dist"))
# Fix SSL certificate path for PyInstaller frozen builds. # Fix SSL certificate path for PyInstaller frozen builds.
# Without this, requests raises "Could not find a suitable TLS CA certificate bundle". # Without this, requests raises "Could not find a suitable TLS CA certificate bundle".
if getattr(sys, "frozen", False): if getattr(sys, "frozen", False):

View File

@ -19,7 +19,7 @@ import requests
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Current app version — kept in sync by push_update.py before each build. # Current app version — kept in sync by push_update.py before each build.
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
APP_VERSION = "1.4.1" APP_VERSION = "1.4.2"
def _exe_dir() -> str: def _exe_dir() -> str: