Small-Bodies-Node / pds4_tools

Python package to read and display NASA PDS4 data.
17 stars 12 forks source link

Make tkinter optional #66

Closed LevN0 closed 2 years ago

LevN0 commented 2 years ago

tkinter is intended to be optional, but actually is required through the default import of the viewer.

A small adjustment on the pattern used in this commit could ensure no attempt to actually import pds4_tools.viewer.core is made at all until the user tries to call the viewer. However this breaks the docstring recognition for pds4_viewer by pycharm and I suspect most other IDEs. Therefore I am sticking with the slightly different approach used here.