quick_validate_python.py 516 B

123456789101112131415161718192021222324
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. #
  4. # SPDX-License-Identifier: Apache-2.0 OR MIT
  5. #
  6. #
  7. # this script is run on built python executables to make sure they function.
  8. import sys
  9. try:
  10. import tkinter
  11. import ssl
  12. import sqlite3
  13. import encodings
  14. import tarfile
  15. import lzma
  16. except Exception as e:
  17. print("Failed: " + e)
  18. sys.exit(1)
  19. print("Validated OK")
  20. sys.exit(0)