Clean up program name and version code
authorIra W. Snyder <devel@irasnyder.com>
Wed, 14 Feb 2007 04:50:26 +0000 (20:50 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Wed, 14 Feb 2007 04:50:26 +0000 (20:50 -0800)
This makes the program name and version be defined in only one place in the
code, right at the beginning of rarslave.py.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
rarslave.py
setup.py

index 0d6a471..7c1b4c8 100755 (executable)
@@ -32,7 +32,7 @@ __license__   = "GNU GPL v2 (or, at your option, any later version)"
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 VERSION="2.0.0"
-PROGRAM="rarslave2"
+PROGRAM="rarslave"
 
 import os, sys, optparse, logging
 import rsutil
index c674f77..bccef88 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,9 +3,12 @@
 
 from distutils.core import setup
 
+from rarslave import PROGRAM
+from rarslave import VERSION
+
 setup (
-               name='rarslave',
-               version='2.0.0',
+               name=PROGRAM,
+               version=VERSION,
                url='http://www.irasnyder.com/devel/#rarslave',
                description='Automatic PAR2 Verification and Extraction Tool',
                author='Ira W. Snyder',