diff --git a/configs/unittests/win_unittest.py b/configs/unittests/win_unittest.py index 0b0a3701..2e8308bf 100644 --- a/configs/unittests/win_unittest.py +++ b/configs/unittests/win_unittest.py @@ -92,7 +92,7 @@ "cmd": [ # when configs are consolidated this python path will only show # for windows. - os.path.join(os.getcwd(), "build", "venv", "Scripts", "python"), + sys.executable, "../scripts/external_tools/mouse_and_screen_resolution.py", "--configuration-url", "http://hg.mozilla.org/%(repo_path)s/raw-file/%(revision)s/" + diff --git a/external_tools/mouse_and_screen_resolution.py b/external_tools/mouse_and_screen_resolution.py index 7df6a0f3..e10a7402 100755 --- a/external_tools/mouse_and_screen_resolution.py +++ b/external_tools/mouse_and_screen_resolution.py @@ -111,7 +111,6 @@ class POINT(Structure): _fields_ = [("x", c_ulong), ("y", c_ulong)] def queryMousePosition(): - global pt pt = POINT() windll.user32.GetCursorPos(byref(pt)) return { "x": pt.x, "y": pt.y}