private void PackageManager_InstalledFilesChanged(object sender, EventArgs e) { lock (_searchPathsLock) { _searchPaths = null; _searchPathPackages = null; } ImportableModulesChanged?.Invoke(this, EventArgs.Empty); }
/// <summary> /// For test use only /// </summary> internal void SetCurrentSearchPaths(IEnumerable <PythonLibraryPath> paths) { lock (_searchPathsLock) { _searchPaths = paths.ToArray(); _searchPathPackages = null; } ImportableModulesChanged?.Invoke(this, EventArgs.Empty); }
public void NotifyImportNamesChanged() { lock (_searchPathsLock) { _searchPaths = null; _searchPathPackages = null; } if (File.Exists(_searchPathCachePath)) { PathUtils.DeleteFile(_searchPathCachePath); } ImportableModulesChanged?.Invoke(this, EventArgs.Empty); }
public void NotifyImportNamesChanged() { lock (_searchPathsLock) { _searchPaths = null; _searchPathPackages = null; } if (File.Exists(_searchPathCachePath)) { for (int retries = 5; retries > 0; --retries) { try { File.Delete(_searchPathCachePath); break; } catch (IOException) { } catch (UnauthorizedAccessException) { } Thread.Sleep(10); } } ImportableModulesChanged?.Invoke(this, EventArgs.Empty); }
/// <summary> /// For test use only /// </summary> internal void SetCurrentSearchPaths(IEnumerable <string> paths) { ModuleResolution.SetCurrentSearchPaths(paths); ImportableModulesChanged?.Invoke(this, EventArgs.Empty); }
public void NotifyImportNamesChanged() { ModuleCache.Clear(); ImportableModulesChanged?.Invoke(this, EventArgs.Empty); }
public void NotifyImportNamesChanged() { ImportableModulesChanged?.Invoke(this, EventArgs.Empty); }