Skip to content

Commit

Permalink
add conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Paton authored and Robert Paton committed Aug 12, 2019
1 parent b984d8f commit 5f4c0c3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 5f4c0c3

Please sign in to comment.