def create_key(self, key, subkey):
""" Creates a key THAT DOESN'T EXIST, we need
to keep track of the keys that we are creating
"""
self.no_restore = False
self.non_existent_path(key, subkey)
try:
return winreg.CreateKey(key, subkey)
except WindowsError as error:
print "Error al crear clave"
self.no_restore = True
评论列表
文章目录