changeset 3:2be0070c6f95

path-independent way of getting the description
author k0s <k0scist@gmail.com>
date Sat, 06 Mar 2010 13:11:46 -0500
parents 0676435d1186
children 6ec33e2ce60f
files README.txt setup.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/README.txt
+++ b/README.txt
@@ -6,9 +6,11 @@ presentation. cropresize is a convenienc
 resizing without aspect ratio distortion.
 
 API
 ---
 
 Command Line
 ------------
 
-``crop-resize``
+The command line program, ``crop-resize``, is included in this python
+package.  The help for the program is displayed by running
+``crop-resize`` with no arguments or ``crop-resize --help``.
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,14 @@
 from setuptools import setup, find_packages
 import sys, os
 
 try:
-    description = file('README.txt').read()
+    filename = os.path.join(os.path.dirname(__file__), 'README.txt')
+    description = file(filename).read()
 except:
     description = ''
 
 version = '0.1.3'
 
 setup(name='cropresize',
       version=version,
       description="crop and resize an image without doing the math yourself",