24 lines
443 B
Python
24 lines
443 B
Python
import logging
|
|
|
|
from entrypoint2 import entrypoint
|
|
|
|
from pyscreenshot.loader import backend_version2
|
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
|
|
@entrypoint
|
|
def main(backend):
|
|
"""Print pyscreenshot back-end version.
|
|
|
|
:param backend: back-end (example:scrot, wx,..)
|
|
"""
|
|
backend = backend if backend else None
|
|
|
|
try:
|
|
v = backend_version2(backend)
|
|
except Exception as e:
|
|
log.warning(e)
|
|
v = ""
|
|
print(v)
|