Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(147)  |  Call(104)  |  Derive(0)  |  Import(43)

src/r/a/rattail.sw.locsms-0.3.7/rattail/sw/locsms/wx/Admin.py   rattail.sw.locsms(Download)
def get_environments(sort=True):
    envs = []
    try:
        key = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, KEY_ENVIRONMENTS, 0, win32con.KEY_READ)
    except pywintypes.error, error:
        env = deploy.Environment(uuid)
 
    key = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, r'%s\%s' % (KEY_ENVIRONMENTS, uuid))
    try:
        value, type_ = win32api.RegQueryValueEx(key, 'Name')
 
    try:
        key = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, r'%s\%s\Nodes' % (KEY_ENVIRONMENTS, uuid))
    except pywintypes.error, error:
        if error[0] != winerror.ERROR_FILE_NOT_FOUND:
def delete_environment(env):
    key = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, KEY_ENVIRONMENTS, 0, win32con.KEY_WRITE)
    RegDeleteTree(key, env.uuid)
    win32api.RegCloseKey(key)
 
 
    try:
        key = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, r'%s\%s' % (KEY_SAMPLES, uuid))
    except pywintypes.error, error:
        if error[0] != winerror.ERROR_FILE_NOT_FOUND:

src/r/a/rattail_locsms-0.3.10/rattail_locsms/wx/Admin.py   rattail_locsms(Download)
def get_environments(sort=True):
    envs = []
    try:
        key = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, KEY_ENVIRONMENTS, 0, win32con.KEY_READ)
    except pywintypes.error, error:
        env = deploy.Environment(uuid)
 
    key = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, r'%s\%s' % (KEY_ENVIRONMENTS, uuid))
    try:
        value, type_ = win32api.RegQueryValueEx(key, 'Name')
 
    try:
        key = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, r'%s\%s\Nodes' % (KEY_ENVIRONMENTS, uuid))
    except pywintypes.error, error:
        if error[0] != winerror.ERROR_FILE_NOT_FOUND:
def delete_environment(env):
    key = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, KEY_ENVIRONMENTS, 0, win32con.KEY_WRITE)
    RegDeleteTree(key, env.uuid)
    win32api.RegCloseKey(key)
 
 
    try:
        key = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, r'%s\%s' % (KEY_SAMPLES, uuid))
    except pywintypes.error, error:
        if error[0] != winerror.ERROR_FILE_NOT_FOUND:

src/e/d/edbob-0.1.2/edbob/win32.py   edbob(Download)
            subkeys.append(name)
        for subkey_name in subkeys:
            subkey = win32api.RegOpenKeyEx(key, subkey_name, 0, win32con.KEY_ALL_ACCESS)
            delete_contents(subkey)
            win32api.RegCloseKey(subkey)
    orig_key = key
    try:
        key = win32api.RegOpenKeyEx(orig_key, subkey, 0, win32con.KEY_ALL_ACCESS)
    except pywintypes.error, e:
        if e[0] != winerror.ERROR_FILE_NOT_FOUND:

src/p/y/PyObjC-PyInstaller-HEAD/pyinstaller/PyInstaller/depend/impdirector.py   PyObjC-PyInstaller(Download)
        for root in (win32con.HKEY_CURRENT_USER, win32con.HKEY_LOCAL_MACHINE):
            try:
                hkey = win32api.RegOpenKeyEx(root, subkey, 0, win32con.KEY_READ)
            except Exception, e:
                logger.debug('RegistryImportDirector: %s' % e)
            for i in range(numsubkeys):
                subkeyname = win32api.RegEnumKey(hkey, i)
                hskey = win32api.RegOpenKeyEx(hkey, subkeyname, 0, win32con.KEY_READ)
                val = win32api.RegQueryValueEx(hskey, '')
                desc = getDescr(val[0])

src/p/y/PyInstaller-2.1/PyInstaller/depend/impdirector.py   PyInstaller(Download)
        for root in (win32con.HKEY_CURRENT_USER, win32con.HKEY_LOCAL_MACHINE):
            try:
                hkey = win32api.RegOpenKeyEx(root, subkey, 0, win32con.KEY_READ)
            except Exception, e:
                logger.debug('RegistryImportDirector: %s' % e)
            for i in range(numsubkeys):
                subkeyname = win32api.RegEnumKey(hkey, i)
                hskey = win32api.RegOpenKeyEx(hkey, subkeyname, 0, win32con.KEY_READ)
                val = win32api.RegQueryValueEx(hskey, '')
                desc = getDescr(val[0])

src/p/y/pyinstaller-HEAD/PyInstaller/depend/impdirector.py   pyinstaller(Download)
        for root in (win32con.HKEY_CURRENT_USER, win32con.HKEY_LOCAL_MACHINE):
            try:
                hkey = win32api.RegOpenKeyEx(root, subkey, 0, win32con.KEY_READ)
            except Exception, e:
                logger.debug('RegistryImportDirector: %s' % e)
            for i in range(numsubkeys):
                subkeyname = win32api.RegEnumKey(hkey, i)
                hskey = win32api.RegOpenKeyEx(hkey, subkeyname, 0, win32con.KEY_READ)
                val = win32api.RegQueryValueEx(hskey, '')
                desc = getDescr(val[0])

src/s/a/salt-HEAD/salt/modules/win_pkg.py   salt(Download)
            try:
                reg_handle = win32api.RegOpenKeyEx(
                    reg_hive,
                    reg_key,
                    0,
    sw_uninst_key = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"
    reg_handle = win32api.RegOpenKeyEx(
        users_hive,
        '',
        0,
    try:
        key_handle = win32api.RegOpenKeyEx(
            reg_hive, reg_key, 0, win32con.KEY_ALL_ACCESS)
        value_data, value_type = win32api.RegQueryValueEx(key_handle,
                                                          value_name)

src/s/a/salt-2014.1.3/salt/modules/win_pkg.py   salt(Download)
            try:
                reg_handle = win32api.RegOpenKeyEx(
                    reg_hive,
                    reg_key,
                    0,
    sw_uninst_key = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"
    reg_handle = win32api.RegOpenKeyEx(
        users_hive,
        '',
        0,
    try:
        key_handle = win32api.RegOpenKeyEx(
            reg_hive, reg_key, 0, win32con.KEY_ALL_ACCESS)
        value_data, value_type = win32api.RegQueryValueEx(key_handle,
                                                          value_name)

src/s/a/salt-thin-HEAD/salt/modules/win_pkg.py   salt-thin(Download)
            try:
                reg_handle = win32api.RegOpenKeyEx(
                    reg_hive,
                    reg_key,
                    0,
    sw_uninst_key = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"
    reg_handle = win32api.RegOpenKeyEx(
        users_hive,
        '',
        0,
    try:
        key_handle = win32api.RegOpenKeyEx(
            reg_hive, reg_key, 0, win32con.KEY_ALL_ACCESS)
        value_data, value_type = win32api.RegQueryValueEx(key_handle,
                                                          value_name)

src/p/y/Pyro-3.16/Pyro/ext/BasicNTService.py   Pyro(Download)
def createRegistryParameters(servicename, parameters):
	newkey=win32api.RegOpenKeyEx(win32con.HKEY_LOCAL_MACHINE, "System\\CurrentControlSet\\Services\\"+servicename,0,win32con.KEY_ALL_ACCESS)
	try:
		win32api.RegSetValueEx(newkey, pyroArgsRegkeyName, 0, win32con.REG_SZ, parameters)
	finally:

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next