# HG changeset patch # User Daniel Jacobs # Date 1263995199 0 # Node ID a00bdef52597fe8e948e47277149a12cd70d55d8 # Parent 26f2f0b4002b9c5c8a953f1dc988f5fab836e8e4 Correct problems in raptorinstallermaker.py: ensure missing directories' names are printed rather than %s when checking Win32 support directory, and remove final reliance on SBS_HOME environment variable (use only the value passed to the -s switch). diff -r 26f2f0b4002b -r a00bdef52597 sbsv2/raptor/util/install-windows/raptorinstallermaker.py --- a/sbsv2/raptor/util/install-windows/raptorinstallermaker.py Wed Jan 20 13:31:03 2010 +0000 +++ b/sbsv2/raptor/util/install-windows/raptorinstallermaker.py Wed Jan 20 13:46:39 2010 +0000 @@ -33,7 +33,7 @@ parser.add_option("-s", "--sbs-home", dest="sbshome", help="Path to use as SBS_HOME environment variable. If not present the script exits.") parser.add_option("-w", "--win32-support", dest="win32support", - help="Path to use as SBS_HOME environment variable. If not present the script exits.") + help="Path to Win32 support directory. If not present the script exits.") (options, args) = parser.parse_args() @@ -49,7 +49,7 @@ win32supportdirs = ["bv", "cygwin", "mingw", "python264"] for dir in win32supportdirs: if not os.path.isdir(os.path.join(options.win32support, dir)): - print "ERROR: directory %s does not exist. Cannot build installer. Exiting..." + print "ERROR: directory %s does not exist. Cannot build installer. Exiting..." % dir sys.exit(2) def parseconfig(xmlFile="raptorinstallermaker.xml"): @@ -57,7 +57,7 @@ def generateinstallerversionheader(sbshome = None): shellenv = os.environ.copy() - shellenv["PYTHONPATH"] = os.path.join(os.environ["SBS_HOME"], "python") + shellenv["PYTHONPATH"] = os.path.join(sbshome, "python") raptorversioncommand = "python -c \"import raptor_version; print raptor_version.numericversion()\""