示例#1
0
        internal InterpreterOptions GetInterpreterOptions(string id)
        {
            InterpreterOptions options;

            if (!_interpreterOptions.TryGetValue(id, out options))
            {
                _interpreterOptions[id] = options = new InterpreterOptions(this, _interpreterRegistry.FindConfiguration(id));
                options.Load();
                RaiseEnvironmentsChanged();
            }
            return(options);
        }
示例#2
0
        internal InterpreterOptions GetInterpreterOptions(IPythonInterpreterFactory interpreterFactory)
        {
            InterpreterOptions options;

            if (!_interpreterOptions.TryGetValue(interpreterFactory, out options))
            {
                var path = GetInteractivePath(interpreterFactory);
                _interpreterOptions[interpreterFactory] = options = new InterpreterOptions(this, interpreterFactory);
                options.Load();
                RaiseEnvironmentsChanged();
            }
            return(options);
        }