From: <sv...@ww...> - 2005-12-16 09:18:26
|
Author: mkrose Date: 2005-12-16 01:18:19 -0800 (Fri, 16 Dec 2005) New Revision: 1775 Modified: trunk/CSP/csp/tools/csp.bootstrap Log: Add a version number to the bootstrap script to allow newer versions to be installed without requiring an explicit override. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1775 Modified: trunk/CSP/csp/tools/csp.bootstrap =================================================================== --- trunk/CSP/csp/tools/csp.bootstrap 2005-12-16 09:17:06 UTC (rev 1774) +++ trunk/CSP/csp/tools/csp.bootstrap 2005-12-16 09:18:19 UTC (rev 1775) @@ -26,10 +26,10 @@ """ import os -import os.path import sys -import string +BOOTSTRAP_VERSION = 2 + # save the path old_path = sys.path[:] @@ -80,6 +80,8 @@ print 'Unable to bootstrap a csp module space from the current working directory.' raise +csp.BOOTSTRAP_VERSION = BOOTSTRAP_VERSION + # restore the path sys.path = [CSP_PATH] + old_path |