create_env.py #1

  • //
  • p4-sdp/
  • dev_rebrand/
  • Server/
  • Windows/
  • setup/
  • create_env.py
  • View
  • Commits
  • Open Download .zip Download (512 B)
# configure_env.py
# Parses the master config and writes the more detailed version for the install.

import os
import sys

# Add the nearby "code" directory to the module loading path
sys.path.insert(0, '.')

from SDPEnv import SDPException, SDPConfigException, SDPInstance, SDPConfig

def main():
    try:
        sdpconfig = SDPConfig()
        sdpconfig.process_config()
    except SDPException as e:
        print("ERROR: ", str(e))
        sys.exit(1)
    sys.exit(0)

if __name__ == '__main__':
    main()
# Change User Description Committed
#1 31751 C. Thomas Tyler p4 stream convertsparse
//p4-sdp/dev/Server/Windows/setup/create_env.py
#1 31397 C. Thomas Tyler Populate -b SDP_Classic_to_Streams -s //guest/perforce_software/sdp/...@31368.
//guest/perforce_software/sdp/dev/Server/Windows/setup/create_env.py
#1 10961 C. Thomas Tyler Merge down from main.
//guest/perforce_software/sdp/main/Server/Windows/setup/create_env.py
#1 10872 C. Thomas Tyler Added Windows SDP into The Workshop:
* Combined (back) into Unix SDP structure.
* Avoided adding duplicate files p4verify.pl, p4review.(py,cfg).
* Upgraded 'dist.sh' utility to produce both Unix and Windows
packages (*.tgz and *.zip), adjusting line endings on text
files to be appropriate for Windows prior to packaging.

To Do:
* Resolve duplication of [template_]configure_new_server.bat.
* Merge test suites for Windows and Unix into a cohesive set.