feat: display version, gui and env location in about #93
@@ -0,0 +1,18 @@
|
||||
import importlib
|
||||
import sys
|
||||
|
||||
|
||||
def about_text():
|
||||
from aare.gui import gui
|
||||
|
||||
try:
|
||||
version = importlib.metadata.version("aaredaq")
|
||||
except Exception:
|
||||
version = "Not found - package is not installed into the environment."
|
||||
return f"""Aare Macromolecular Crystallography GUI
|
||||
Copyright: Paul Scherrer Institute 2023-2026
|
||||
---
|
||||
Version: {version}
|
||||
GUI file: {gui.__file__}
|
||||
Interpreter: {sys.executable}
|
||||
"""
|
||||
Reference in New Issue
Block a user