Skip to content

Commit

Permalink
Log Markdown and Pymdown Extension versions in support info dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Feb 9, 2020
1 parent 644f64c commit 46ae6bf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rummage/lib/gui/dialogs/support_info_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,18 @@ def display_support_information(self):
except Exception:
info["gntp"] = 'Version could not be acquired!'

try:
import markdown
info['markdown'] = format_version(markdown, '__version__')
except Exception:
info["markdown"] = 'Version could not be acquired'

try:
import pymdownx
info['pymdownx'] = format_version(pymdownx, '__version__')
except Exception:
info["pymdownx"] = 'Version could not be acquired'

self.info = textwrap.dedent(
"""\
- Arch: %(arch)s
Expand All @@ -180,6 +192,8 @@ def display_support_information(self):
- Regex: %(regex)s
- Filelock: %(filelock)s
- Gntp: %(gntp)s
- Markdown: %(markdown)s
- Pymdown Extensions: %(pymdownx)s
""" % info
)

Expand Down

0 comments on commit 46ae6bf

Please sign in to comment.