Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1250

Better Search for Program Files Directory in scons

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Environment:
      Windows builds through scons
    • Server Development Platform

      The boost code is not searching for the windows program files folder properly.

      This is set in an environmental variable, actually 3 on 64 bit windows:

      ProgramFiles=C:\Program Files
      ProgramFiles(x86)=C:\Program Files (x86)
      ProgramW6432=C:\Program Files

      It might not necessarily be "C:\program files".

      def find_boost():
      for x in ('', ' (x86)'):
      boostDir = "C:/Program Files" + x + "/boost/latest"
      if os.path.exists( boostDir ):
      return boostDir
      for bv in reversed( range(33,50) ):
      for extra in ('', '_0', '_1'):
      boostDir = "C:/Program Files" + x + "/Boost/boost_1_" + str(bv) + extra
      if os.path.exists( boostDir ):
      return boostDir
      if os.path.exists( "C:/boost" ):
      return "C:/boost"
      if os.path.exists( "/boost" ):
      return "/boost"
      return None

      boostDir = find_boost()
      if boostDir is None:
      print( "can't find boost" )
      Exit(1)

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            zippy1981 Justin Dearing
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: