/// <summary> /// Determines whether the specified directory is an importable package. /// </summary> private bool IsPackage(string directory) { return(ModulePath.PythonVersionRequiresInitPyFiles(_configuration.Version) ? !string.IsNullOrEmpty(ModulePath.GetPackageInitPy(directory)) : Directory.Exists(directory)); }
/// <summary> /// Determines whether the specified directory is an importable package. /// </summary> private bool IsPackage(string directory) => ModulePath.PythonVersionRequiresInitPyFiles(Configuration.Version) ? !string.IsNullOrEmpty(ModulePath.GetPackageInitPy(directory)) : _fs.DirectoryExists(directory);