コード例 #1
0
 public static string PathToModuleName(string path, Func <string, bool> fileExists)
 {
     return(ModulePath.FromFullPath(
                path,
                isPackage: dirName => fileExists(Path.Combine(dirName, "__init__.py"))
                ).ModuleName);
 }
コード例 #2
0
 public static string PathToModuleName(string path)
 {
     return(ModulePath.FromFullPath(path).ModuleName);
 }