diff --git a/addon/globalPlugins/resourceMonitor/__init__.py b/addon/globalPlugins/resourceMonitor/__init__.py index a3b5c79a..ff681e20 100644 --- a/addon/globalPlugins/resourceMonitor/__init__.py +++ b/addon/globalPlugins/resourceMonitor/__init__.py @@ -3,7 +3,10 @@ #Authors: Alex Hall, Joseph Lee, Beqa Gozalishvili, Tuukka Ojala # Copyright 2013-2017, released under GPL. -import _winreg as winreg # Python 3 compatibility. +try: + import winreg #Python 3 +except ImportError: + import _winreg as winreg # Python 2 from datetime import datetime import sys import os