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

We should support mongo_custom_vars on Windows

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Server Development Platform

    Description

      Right now we do this to find the mongo_custom_vars.py file:

       
      def find_mongo_custom_variables():
          files = []
          paths = [path for path in sys.path if 'site_scons' in path]
          for path in paths:
              probe = os.path.join(path, 'mongo_custom_variables.py')
              if os.path.isfile(probe):
                  files.append(probe)
          return files
      

      Which works great on POSIX platforms because SCons adds $HOME/.scons/site_scons to the sys.path. However, on Windows it does no such thing, sys.path (matching our site_scons condition) will only include the site_tools\site_scons directory.

      We should inject in a path like %APPDATA%\SCons\site_scons on Windows so users on that platform can have a similar development experience as those on other systems.

      Attachments

        Activity

          People

            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            mathew.robinson@mongodb.com Mathew Robinson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: