Added platform info to output
This commit is contained in:
parent
e41656355f
commit
8349b3719c
1 changed files with 10 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import logging
|
||||
import os
|
||||
import sys
|
||||
import platform
|
||||
import pkg_resources
|
||||
|
||||
from .error_sources import bcolors
|
||||
|
||||
|
|
@ -68,6 +70,14 @@ if __name__ == "__main__":
|
|||
error_sources.extend(check_capture_reload.main())
|
||||
error_sources.extend(check_sangaboard.main())
|
||||
|
||||
dist = pkg_resources.get_distribution("openflexure-microscope-server")
|
||||
|
||||
print()
|
||||
print(f"Server Version: {dist.version}")
|
||||
print(f"Server Location: {dist.location}")
|
||||
print(f"Platform: {platform.platform()}")
|
||||
print(f"Python: {sys.version}")
|
||||
|
||||
if not error_sources:
|
||||
print()
|
||||
print(bcolors.OKGREEN + "No issues found!" + bcolors.ENDC)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue