import os

from django.core import management
from django.conf import settings


def load_global_fixtures(*fixtures, **opts):
    options = dict(fixtures_root=settings.FIXTURES_ROOT, verbosity=0)
    options.update(opts)

    for fixture in fixtures:
        management.call_command('loaddata',
                os.path.join(options['fixtures_root'], fixture),
                verbosity=options['verbosity'])