2015-08-21, 20:10
(2015-08-21, 17:42)MrNice Wrote: Thanks robweber,
I deleted the 5 lines, keeping only xbmc.python line.
Install was fine.
Now when I start Backup, I get the error message:
Backup error
See log
I suppose that's what I get for not testing what I recommended. I thought that libraries would only get called if you tried to use them. They are being loaded when the script runs regardless via import statements. In theory you could track down everywhere they are and remove them, but it will be a lot of check-test-try again on your end. If the addon ever changes and you want the new version you'd have to do it all over again.
An alternative would be to take a working install (on a computer that has the internet) and package the addon plus all the other dependencies an "offline" install. You'd have to copy over the dependencies first, then the Backup addon. I guess that is assuming they themselves don't have odd dependencies you'd then have to hunt down........
(2015-08-21, 18:46)mattmartinolc Wrote: Is there an easy way to add a line of code that reboots the system upon completion of a restore?
Is this something you'd want after a scheduled backup or every backup? I could change the settings for the scheduler to read "Post-Backup Action" and include Shutdown/Restart as an action there. If you're in a hurry just change line 73 of scheduler.py to read "Restart()" rather than shutdown. Again, this only applies to the scheduler.