cfs-tools / cfs-basecamp

Provides a framework and tools for developing, downloading, and integrating core Flight System (cFS) applications into an operational system.
Other
24 stars 2 forks source link

Add PySimpleGUI license support #70

Closed open-stemware closed 5 months ago

open-stemware commented 5 months ago

PySimpleGUI 5.0 requires a license. It's free for single user's but t makes the Basecamp more cumbersome. Open STEMware purchased a commercial license. Basecamp's packaging and distribution needs to be changed so user's won't need to deal with licensing.

open-stemware commented 5 months ago

The change was easy. A distribution key needed to be generated from the commercial license and set to the variable PySimpleGUI_License. This variable must be defined prior to "import PySimpleGUI as sg" therefor I defined PySimpleGUI_License in the tools package init.py file and rearranged some imports.

Eventually the README instructions will need to change to enforce that the version of PySimpleGUI installed matches the versions supported by the license.

open-stemware commented 5 months ago

Some the "from tools import PySimpleGUI_License" statements were added when the tools package was not visible/accessible.