From c125414991ad57c55d6684b7292f3e5a1354f8b8 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 26 Dec 2015 12:39:54 -0600 Subject: [PATCH] Correct path for deviceid --- resources/lib/clientinfo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/clientinfo.py b/resources/lib/clientinfo.py index 5723db58..2c598934 100644 --- a/resources/lib/clientinfo.py +++ b/resources/lib/clientinfo.py @@ -2,6 +2,7 @@ ################################################################################################# +import os from uuid import uuid4 import xbmc @@ -74,7 +75,7 @@ class ClientInfo(): return clientId addon_path = self.addon.getAddonInfo('path').decode('utf-8') - GUID_file = xbmc.translatePath("%s\machine_guid" % addon_path).decode('utf-8') + GUID_file = xbmc.translatePath(os.path.join(addon_path, "machine_guid")).decode('utf-8') try: GUID = open(GUID_file)