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>
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
VERSION="2.0.0"
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
VERSION="2.0.0"
import os, sys, optparse, logging
import rsutil
import os, sys, optparse, logging
import rsutil
from distutils.core import setup
from distutils.core import setup
+from rarslave import PROGRAM
+from rarslave import VERSION
+
- 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',
url='http://www.irasnyder.com/devel/#rarslave',
description='Automatic PAR2 Verification and Extraction Tool',
author='Ira W. Snyder',