public PythonSiteImpl(IPythonRuntime runtime) { string name = runtime.GetType().Name; string configPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); string dbPath = PathCombine(configPath, "MonoDevelop", "PyBinding", "Sites", name, "completion.db"); m_pathsPath = PathCombine(configPath, "MonoDevelop", "PyBinding", "Sites", name, "paths"); if (File.Exists(m_pathsPath)) { foreach (var line in File.ReadAllLines(m_pathsPath)) { string trimmed = line.Trim(); if (!String.IsNullOrEmpty(line)) { m_Paths.Add(trimmed); } } } m_Database = new ParserDatabase(dbPath); m_Database.Open(); m_parser = ParserManager.GetParser(runtime); }
public FieldBackedConfigValue(FieldInfo field, object instance) { this.field = field; this.instance = instance; parser = ParserManager.GetParser(ValueType); }