quick_validate_python.py 518 B

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