_winreg troubles! HELP!

Mark Hammond MarkH at ActiveState.com
Mon May 21 18:16:13 EDT 2001


Samuel A. Falvo II wrote:

>>>>value = value + ";c:\myProgram\bin"
>>>>SetValueEx( hEnvironment, "PATH", 0, type, value )
>>>>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> WindowsError: [Errno 5] Access is denied
> 
> The problem I'm having is that I'm running as an administrator of this NT
> machine.  Yet, it's still giving me access denied errors, even though I
> opened the Environment key for both reading and writing.  What am I
> overlooking?


the problem may be your string.  As it stands non-ascii characters are 
being used.  \b == 0x08.

Mark.




More information about the Python-list mailing list