1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 07:57:52 +03:00

Clean weasy/tests/__init__

This commit is contained in:
Guillaume Ayoub 2011-08-24 10:58:38 +02:00
parent cf3f240ff2
commit 44cf5dd955

View File

@ -16,6 +16,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
WeasyPrint testing suite.
"""
import os.path
import logging
@ -24,4 +29,5 @@ logging.getLogger('WEASYPRINT').addHandler(logging.StreamHandler())
def resource_filename(basename):
"""Return the absolute path of the resource called ``basename``."""
return os.path.join(os.path.dirname(__file__), 'resources', basename)