On Fri, Aug 3, 2012 at 10:39 AM, Albert-Jan Roskam <[email protected]> wrote: > Hi, > > I am trying to change a registry value (Windows 7, Python 2.7) but it won't > work when I try to do this using Python: > > import os > # 1 using this from Python won't work, but double-clicking the file works. > os.system(r"regedit /s C:\Users\Desktop\set_temp.reg") > # 2: using this from Python won't work, but from the commandline or with a > batch file works > os.system("reg add HKEY_CURRENT_USER\Software .....(etc)") > > Why is this not working using Python? Is there a built-in way to do this (I > don't have win32api)?
Wouldn't it be simpler to use the _winreg module? http://docs.python.org/library/_winreg.html _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
