From 832a906b27feccd9916d38b6a890b047781acce2 Mon Sep 17 00:00:00 2001 From: sikyu Date: Tue, 30 May 2017 23:09:29 -0500 Subject: [PATCH 1/2] Handle 32-bit Python on 64-bit Windows Also, reg path changed from WinVNC4 to vncserver --- .gitignore | 3 +++ WindowsRegistry.py | 8 +++++++- vncpasswd.py | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0d20b64..830963a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ *.pyc +.idea/misc.xml +*.xml +*.iml diff --git a/WindowsRegistry.py b/WindowsRegistry.py index 0ea0a44..d9a3863 100755 --- a/WindowsRegistry.py +++ b/WindowsRegistry.py @@ -1,6 +1,7 @@ import sys import _winreg as wreg import cPickle as pickle +import platform class WindowsRegistry: """ A class to simplify read/write access to the Windows Registry """ @@ -58,7 +59,12 @@ def __init__(self, company="RealVNC", project="WinVNC4", create=0): i=0 while not_opened and i Date: Wed, 31 May 2017 23:28:05 -0500 Subject: [PATCH 2/2] Handle both vncserver and WinVNC keys --- WindowsRegistry.py | 2 -- vncpasswd.py | 21 +++++++++++++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/WindowsRegistry.py b/WindowsRegistry.py index d9a3863..020dfcb 100755 --- a/WindowsRegistry.py +++ b/WindowsRegistry.py @@ -60,8 +60,6 @@ def __init__(self, company="RealVNC", project="WinVNC4", create=0): while not_opened and i