From 9e8cc5ffcb941a47c7d3ab655a28f5e160d80637 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 27 May 2014 11:16:37 +0200 Subject: [PATCH] setup.py should be callable from anywhere Use os.path.dirname(__file__) to locate README.markdown, debian packaging is broken without it. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2c3a828..cac3b01 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ +import os from distutils.core import setup @@ -5,7 +6,7 @@ setup( name = "django-watson", version = "1.1.3", description = "Full-text multi-table search application for Django. Easy to install and use, with good performance.", - long_description = open("README.markdown").read(), + long_description = open(os.path.join(os.path.dirname(__file__), "README.markdown")).read(), author = "Dave Hall", author_email = "dave@etianen.com", url = "http://github.com/etianen/django-watson",