Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

debug.py 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. from __future__ import print_function
  2. import ssl
  3. import sys
  4. import cffi
  5. import cryptography
  6. import OpenSSL.SSL
  7. from . import version
  8. _env_info = """\
  9. pyOpenSSL: {pyopenssl}
  10. cryptography: {cryptography}
  11. cffi: {cffi}
  12. cryptography's compiled against OpenSSL: {crypto_openssl_compile}
  13. cryptography's linked OpenSSL: {crypto_openssl_link}
  14. Python's OpenSSL: {python_openssl}
  15. Python executable: {python}
  16. Python version: {python_version}
  17. Platform: {platform}
  18. sys.path: {sys_path}""".format(
  19. pyopenssl=version.__version__,
  20. crypto_openssl_compile=OpenSSL._util.ffi.string(
  21. OpenSSL._util.lib.OPENSSL_VERSION_TEXT,
  22. ).decode("ascii"),
  23. crypto_openssl_link=OpenSSL.SSL.SSLeay_version(
  24. OpenSSL.SSL.SSLEAY_VERSION
  25. ).decode("ascii"),
  26. python_openssl=getattr(ssl, "OPENSSL_VERSION", "n/a"),
  27. cryptography=cryptography.__version__,
  28. cffi=cffi.__version__,
  29. python=sys.executable,
  30. python_version=sys.version,
  31. platform=sys.platform,
  32. sys_path=sys.path,
  33. )
  34. if __name__ == "__main__":
  35. print(_env_info)