# HG changeset patch # User Chris Nielsen # Date 1358527896 18000 # Node ID fc97fabaf28d1774174171ce347de791e8af0a94 # Parent 638009474a3b0ed59f2e74aa518c878c596f9d32 Update windows contrib script for current TortoiseHg version (2.6.2). TortoiseHg 2.6.2 is packaged with Python 2.7.3 (and not 2.6.x), and now includes some of the libraries that this script previously needed to copy into place. diff -r 638009474a3b -r fc97fabaf28d contrib/windows/update_tortoisehg_libs.py --- a/contrib/windows/update_tortoisehg_libs.py Mon Jan 23 15:01:27 2012 +0100 +++ b/contrib/windows/update_tortoisehg_libs.py Fri Jan 18 11:51:36 2013 -0500 @@ -1,23 +1,23 @@ # this script will update tortoisehgs python libs to include the missing libs that hg-review needs -# (tested with Python 2.6 and Tortoisehg 1.1) +# (tested with Python 2.7.3 and Tortoisehg 2.6.2) # # Daniel Newton # -# Version 1.0 (2010/07/28) +# Version 1.1 (2013/01/18) import sys import os # check python version -if sys.version[:3] != '2.6': - sys.exit('Need Python 2.6') +if sys.version[:3] != '2.7': + sys.exit('Need Python 2.7') # check for windows if sys.platform != 'win32': sys.exit('Script only works on win32') # list of libs to add -libs = ('Cookie.py', 'decimal.py', 'htmlentitydefs.py', 'code.py', 'codeop.py', 'compiler', 'numbers.py', 'symbol.py', 'uuid.py') +libs = ('Cookie.py', 'htmlentitydefs.py', 'code.py', 'codeop.py', 'compiler', 'symbol.py', 'uuid.py') # find python lib path pylib_path = os.path.join(os.path.dirname(sys.executable), 'lib')