summaryrefslogtreecommitdiff
path: root/setup.py
diff options
authorThomas Goirand <zigo@debian.org>2013-05-11 06:56:05 +0000
committergit-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com>2013-05-11 10:22:10 +0000
commit4000df6530e145b0a913fed07ce1bb4b0f0310e3 (patch)
treedd3a8a2011d61da6dde674b6310f9c00a21f4361 /setup.py
parent05906ae6eb033838be645c7a5616a5be352a488f (diff)
1.0-1 (patches unapplied)import/1.0-1
Imported using git-ubuntu import.
Notes
Notes: * Uploading to unstable. * New upstream release.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index f42e919..c4b666b 100644
--- a/setup.py
+++ b/setup.py
@@ -2,8 +2,11 @@
from distutils.core import setup
import re
+import os.path
-src = open('jsonpointer.py').read()
+dirname = os.path.dirname(os.path.abspath(__file__))
+filename = os.path.join(dirname, 'jsonpointer.py')
+src = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", src))
docstrings = re.findall('"""(.*)"""', src)