The script assumed settings.yaml was in the current directory. The fix: modify the script to determine the executable’s path dynamically:
import sys, os if getattr(sys, 'frozen', False): base_path = sys._MEIPASS # PyInstaller temp folder else: base_path = os.path.dirname(__file__)
: If the script relies on PowerShell backends, Windows may block it by default to protect the system.
or