#!/usr/bin/env python

import os
os.environ["MPLBACKEND"] = 'agg'

import matplotlib
matplotlib.use('agg')

import pytest
import pytest_mpl.plugin
import oggm
import sys

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

initial_dir = os.getcwd()
oggm_file = os.path.abspath(oggm.__file__)
oggm_dir = os.path.dirname(oggm_file)

sys.exit(pytest.main([oggm_dir, '--mpl'], plugins=[pytest_mpl.plugin]))

#!/usr/bin/env python

import os
os.environ["MPLBACKEND"] = 'agg'

import matplotlib
matplotlib.use('agg')

import pytest
import oggm
import sys

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

initial_dir = os.getcwd()
oggm_file = os.path.abspath(oggm.__file__)
oggm_dir = os.path.dirname(oggm_file)

sys.exit(pytest.main([oggm_dir, '--mpl']))

Revert "Try to fix mpl invocation"
Revert "Try to fix mpl invocation"

This reverts commit c5f0e32eb12ae7809b9fde0371bfb73ec86d47a3.
