'Create a .ini filename located in user home directory.
This .ini files stores the global spyder preferences.'

def _filename_global(self):

    if (self.subfolder is None):
        config_file = osp.join(get_home_dir(), ('.%s.ini' % self.name))
        return config_file
    else:
        folder = get_conf_path()
        if ('defaults' in self.name):
            folder = osp.join(folder, 'defaults')
            if (not osp.isdir(folder)):
                os.mkdir(folder)
        config_file = osp.join(folder, ('%s.ini' % self.name))
        return config_file
