[cvsnt] ChangeRoot.py
Jay Goldman
jgoldman at vestmark.com
Thu Apr 19 21:28:31 BST 2007
when I try to run the change root python macro I get the following
output:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files\GNU\WinCvs
2.0\PythonLib\cvsgui\MacroRegistry.py", line 210, in DoCmd
m.Run()
File "C:\Program Files\GNU\WinCvs 2.0\Macros\ChangeRoot.py",
line 177, in Run
oldroot = self.getRoot( self.sel[0])
File "C:\Program Files\GNU\WinCvs 2.0\Macros\ChangeRoot.py",
line 123, in getRoot
f_root = open( root, 'r')
TypeError: an integer is required
I've put a print statement in the macro and the value of root is correct
(c:\x\y\CVS\Root)
I've even tried a hard-coded value in a separate call to 'open' ... same
error message.
When I start wincvs, I am running version 2.1.0.1 (Build 1), I get the
following startup messages:
CVS executable: C:\Program Files\cvsnt\cvs.exe
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32
bit (Intel)] on win32
Tk is available, Tk-macros are enabled
TCL is available, shell is enabled : help (select and press
enter)
Saved settings for C:\x successfully...
What am I doing wrong?
Thanks,
Jay Goldman
More information about the cvsnt
mailing list