Skip to content

Commit

Permalink
Merge pull request #39 from Ignoble61/build-rewrite
Browse files Browse the repository at this point in the history
Ensure includes is only written to skin that called script
  • Loading branch information
marcelveldt committed Aug 8, 2015
2 parents 6cd6808 + bcc4f23 commit 7e3362d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/lib/xmlfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def __init__(self):
self.MAINBACKGROUND = {}
self.hasSettings = False
self.widgetCount = 1

self.skinDir = xbmc.translatePath( "special://skin" )

self.checkForShorctcuts = []

Expand Down Expand Up @@ -541,7 +543,7 @@ def writexml( self, profilelist, mainmenuID, groups, numLevels, buildMode, progr
if extensionpoint.attrib.get( "point" ) == "xbmc.gui.skin":
resolutions = extensionpoint.findall( "res" )
for resolution in resolutions:
path = xbmc.translatePath( os.path.join( "special://skin/", resolution.attrib.get( "folder" ), "script-skinshortcuts-includes.xml").encode("utf-8") ).decode("utf-8")
path = xbmc.translatePath( os.path.join( self.skinDir, resolution.attrib.get( "folder" ), "script-skinshortcuts-includes.xml").encode("utf-8") ).decode("utf-8")
paths.append( path )
skinVersion = addon.getroot().attrib.get( "version" )

Expand Down

0 comments on commit 7e3362d

Please sign in to comment.