# HG changeset patch # User k0s # Date 1267899106 18000 # Node ID 2be0070c6f9566783ebd64c1ccf96db7c95cbc37 # Parent 0676435d11862b8b2b864b751402cec54fb44cb3 path-independent way of getting the description diff -r 0676435d1186 -r 2be0070c6f95 README.txt --- 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``. diff -r 0676435d1186 -r 2be0070c6f95 setup.py --- 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 = ''