Update patch

Move patch from cache to addon_data. No longer need to restart Kodi to apply the first patch.
This commit is contained in:
angelblue05 2018-10-11 20:24:33 -05:00
parent 7df7e5d4a8
commit 403e5834e0
8 changed files with 55 additions and 34 deletions

View file

@ -373,6 +373,9 @@ def copytree(path, dest):
'''
dirs, files = xbmcvfs.listdir(path)
if not xbmcvfs.exists(dest):
xbmcvfs.mkdirs(dest)
if dirs:
copy_recursive(path, dirs, dest)
@ -401,6 +404,9 @@ def copy_file(path, dest):
''' Copy specific file.
'''
if path.endswith('.pyo'):
return
xbmcvfs.copy(path, dest)
LOG.debug("copy: %s to %s", path, dest)