def __getClassModuleName(self, class_):
     if class_.__module__ == '__main__':
         import __main__ as module
         project_package_path = realPath(self.context.project_package.__path__[0])
         module_file_path = os.path.splitext(realPath(module.__file__))[0]
         if module_file_path.startswith(project_package_path):
             module_name = '.'.join(splitPath(module_file_path)
                                    [len(splitPath(project_package_path)):])
     else:
         module_name = class_.__module__[len(self.__baseName()) + 1:]
     return module_name
 def _buildNamespace(self, file_path, templates_set):
     repo_split = splitPath(self._getRepoPath(templates_set))
     namespace, _ = os.path.splitext(file_path)
     namespace = splitPath(namespace)[len(repo_split):]
     return '.'.join(namespace)