3
0

constants.py 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. #
  10. # -------------------------------------------------------------------------
  11. """Common constants for the dccsi wing pro ide integration
  12. :file: DccScriptingInterface\\Tools\\IDE\\Wing\\constants.py
  13. :Status: Prototype
  14. :Version: 0.0.1
  15. """
  16. # -------------------------------------------------------------------------
  17. # standard imports
  18. import logging as _logging
  19. # -------------------------------------------------------------------------
  20. _MODULENAME = 'DCCsi.Tools.IDE.Wing.constants'
  21. _LOGGER = _logging.getLogger(_MODULENAME)
  22. _LOGGER.debug(f'Initializing: {_MODULENAME}')
  23. # -------------------------------------------------------------------------
  24. # dccsi imports here
  25. from DccScriptingInterface.Tools.IDE.Wing import USER_HOME
  26. # wing is a x86 program, this pulls the constant for that (not a Path object)
  27. from DccScriptingInterface.Tools.IDE.Wing import PATH_PROGRAMFILES_X86
  28. from DccScriptingInterface.Tools.IDE.Wing import PATH_DCCSI_TOOLS_IDE_WING
  29. # -------------------------------------------------------------------------
  30. # wing pro ide constants here
  31. # a setting to know the wing config exists
  32. ENVAR_DCCSI_CONFIG_IDE_WING = 'DCCSI_CONFIG_IDE_WING'
  33. # enavr to get/set the wing pro version
  34. ENVAR_DCCSI_WING_VERSION_MAJOR = 'DCCSI_WING_VERSION_MAJOR'
  35. # the default supported version of wing pro is 8
  36. from DccScriptingInterface.Tools.IDE.Wing import SLUG_DCCSI_WING_VERSION_MAJOR
  37. # str slug for the default wing type
  38. # in the future, add support for wing personal and maybe wing 101 versions
  39. from DccScriptingInterface.Tools.IDE.Wing import SLUG_DCCSI_WING_TYPE
  40. # path string constructor, dccsi default WINGHOME location
  41. from DccScriptingInterface.Tools.IDE.Wing import PATH_WINGHOME
  42. # wing native hook for it's home location, used in wingstub.py
  43. ENVAR_WINGHOME = 'WINGHOME'
  44. ENVAR_WINGHOME_BIN = 'WINGHOME_BIN'
  45. # path string constructor, wing home bin folder
  46. PATH_WINGHOME_BIN = f'{PATH_WINGHOME}\\bin'
  47. # envar to get/set the wing pro exe
  48. ENVAR_WING_EXE = 'WING_EXE'
  49. # path string constructor, wing home bin folder
  50. PATH_WINGHOME_BIN_EXE = f'{PATH_WINGHOME_BIN}\\wing.exe'
  51. # this is already available PATH_DCCSI_TOOLS_IDE_WING, imported above
  52. # path string constructor, dccsi wing sub-dir
  53. # PATH_DCCSI_TOOLS_IDE_WING = f'{PATH_DCCSIG.as_posix()}\\Tools\\IDE\\Wing'
  54. # envar to get/set the solution project file for wing
  55. ENVAR_WING_PROJ = 'WING_PROJ'
  56. # path string constructor, the dccsi wing solution file
  57. PATH_DCCSI_TOOLS_IDE_WING_PROJ = (f'{PATH_DCCSI_TOOLS_IDE_WING}' +
  58. f'\\.solutions' +
  59. f'\\DCCsi_{SLUG_DCCSI_WING_VERSION_MAJOR}x.wpr')
  60. # envar to get/set the userhome wing appdata folder
  61. ENVAR_WING_APPDATA = 'WING_APPDATA'
  62. # path string constructor, userhome where wingstubdb.py can live
  63. from DccScriptingInterface.Tools.IDE.Wing import PATH_WING_APPDATA
  64. # --- END -----------------------------------------------------------------