public string GetModuleQname(string file)
{
if (file.EndsWith("__init__.py"))
{
file = FileSystem.GetDirectoryName(file);
}
else if (file.EndsWith(suffix))
{
file = file.Substring(0, file.Length - suffix.Length);
}
return file.Replace(".", "%20").Replace('/', '.').Replace('\\', '.');
}