standalone.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # coding:utf-8
  2. #!/usr/bin/python
  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. #
  7. # SPDX-License-Identifier: Apache-2.0 OR MIT
  8. #
  9. """Boostraps and Starts Standalone DCC Material Converter utility"""
  10. # built in's
  11. import os
  12. import site
  13. # -------------------------------------------------------------------------
  14. # \dev\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface\SDK\PythonTools\DCC_Material_Converter\standalone.py
  15. _MODULE_PATH = os.path.abspath(__file__)
  16. _DCCSIG_REL_PATH = "../../../.."
  17. _DCCSIG_PATH = os.path.join(_MODULE_PATH, _DCCSIG_REL_PATH)
  18. _DCCSIG_PATH = os.path.normpath(_DCCSIG_PATH)
  19. _DCCSIG_PATH = os.getenv('DCCSIG_PATH',
  20. os.path.abspath(_DCCSIG_PATH))
  21. # we don't have access yet to the DCCsi Lib\site-packages
  22. site.addsitedir(_DCCSIG_PATH) # PYTHONPATH
  23. # azpy bootstrapping and extensions
  24. import azpy.config_utils
  25. _config = azpy.config_utils.get_dccsi_config()
  26. settings = _config.get_config_settings(setup_ly_pyside=True)
  27. from main import launch_material_converter
  28. launch_material_converter()