public static string PathToModuleName(string path, Func <string, bool> fileExists) { return(ModulePath.FromFullPath( path, isPackage: dirName => fileExists(Path.Combine(dirName, "__init__.py")) ).ModuleName); }
public static string PathToModuleName(string path) { return(ModulePath.FromFullPath(path).ModuleName); }