Skip to content

Commit

Permalink
provide default string "not found" for versions of installed modules
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Muenker <mail@chipmuenk.de>
  • Loading branch information
chipmuenk committed Oct 11, 2023
1 parent a46f170 commit c4e6e61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyfda/libs/pyfda_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,33 +88,33 @@
from docutils import __version__ as V_DOC
MODULES.update({'docutils': {'V_DOC': V_DOC}})
except ImportError:
pass
MODULES.update({'docutils': {'V_DOC': "not found"}})

try:
from mplcursors import __version__ as V_CUR
MODULES.update({'mplcursors': {'V_CUR': V_CUR}})
except ImportError:
pass
MODULES.update({'mplcursors': {'V_CUR': "not found"}})

MODULES.update({'yosys': {'V_YO': dirs.YOSYS_VER}})

try:
from xlwt import __version__ as V_XLWT
MODULES.update({'xlwt': {'V_XLWT': V_XLWT}})
except ImportError:
pass
MODULES.update({'xlwt': {'V_XLWT': "not found"}})

try:
from xlsxwriter import __version__ as V_XLSX
MODULES.update({'xlsx': {'V_XLSX': V_XLSX}})
except ImportError:
pass
MODULES.update({'xlsx': {'V_XLSX': "not found"}})

try:
from amaranth import __version__ as V_AM
MODULES.update({'amaranth': {'V_AM': V_AM}})
except ImportError:
pass
MODULES.update({'amaranth': {'V_AM': "not found"}})


# Remove module names as keys and return a dict with items like
Expand Down

0 comments on commit c4e6e61

Please sign in to comment.