symbol-table.py 830 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. """
  4. Copyright (c) Contributors to the Open 3D Engine Project.
  5. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  6. SPDX-License-Identifier: Apache-2.0 OR MIT
  7. """
  8. import sys
  9. import os
  10. result = 0 # to define for sub-tests
  11. resultFailed = 0
  12. def doTests(compiler, silent, azdxcpath):
  13. global result
  14. global resultFailed
  15. # Working directory should have been set to this script's directory by the calling parent
  16. # You can get it once doTests() is called, but not during initialization of the module,
  17. # because at that time it will still be set to the working directory of the calling script
  18. workDir = os.getcwd()
  19. result = 1
  20. resultFailed = 0
  21. if __name__ == "__main__":
  22. print ("please call from testapp.py")