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	Fri Mar 05 16:46:05 2010 -0500
+++ b/README.txt	Sat Mar 06 13:11:46 2010 -0500
@@ -11,4 +11,6 @@
 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	Fri Mar 05 16:46:05 2010 -0500
+++ b/setup.py	Sat Mar 06 13:11:46 2010 -0500
@@ -2,7 +2,8 @@
 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 = ''