diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..5bcab93 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import os +import pytest + +try: + import pyqrc + BASEPATH = os.path.join(pyqrc.__path__[0]) +except ImportError: + here = os.path.dirname(os.path.abspath(__file__)) + BASEPATH = os.path.normpath(os.path.join(here, '..', 'pyqrc')) + + +def datapath(path): + return os.path.join(BASEPATH, 'examples', path)