2
0

quick_validate_python.py 576 B

12345678910111213141516171819202122232425262728
  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. print("Simple import validation started")
  10. import sys
  11. try:
  12. import tkinter
  13. import ssl
  14. import sqlite3
  15. import encodings
  16. import tarfile
  17. import lzma
  18. import bz2
  19. except Exception as e:
  20. print("Failed: " + e)
  21. sys.exit(1)
  22. print("Validated OK")
  23. sys.exit(0)