Correct path for deviceid

This commit is contained in:
angelblue05 2015-12-26 12:39:54 -06:00
parent 8d219b64b3
commit c125414991

View file

@ -2,6 +2,7 @@
################################################################################################# #################################################################################################
import os
from uuid import uuid4 from uuid import uuid4
import xbmc import xbmc
@ -74,7 +75,7 @@ class ClientInfo():
return clientId return clientId
addon_path = self.addon.getAddonInfo('path').decode('utf-8') 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: try:
GUID = open(GUID_file) GUID = open(GUID_file)