diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2010-12-13 13:20:45 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2010-12-13 13:20:45 +0100 |
| commit | 485ad5f92eb769b058a8e0c2cc0b60256fbca80b (patch) | |
| tree | 5e7caccd713b8101bc3739ae6bdf5ff1fe65b685 /lib/python/Plugins/Extensions/DVDBurn/DVDProject.py | |
| parent | 59f9f67261d0e6018293871d00cbd12572fbb4c7 (diff) | |
| parent | 665611070aead66a845b42e4b8912bcc45bc5602 (diff) | |
| download | enigma2-485ad5f92eb769b058a8e0c2cc0b60256fbca80b.tar.gz enigma2-485ad5f92eb769b058a8e0c2cc0b60256fbca80b.zip | |
Merge remote branch 'remotes/origin/bug_620_dvdburn_absolutepaths'
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn/DVDProject.py')
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDBurn/DVDProject.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py index 7f755db4..6dbcd499 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py +++ b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py @@ -2,6 +2,7 @@ from Tools.Directories import fileExists from Components.config import config, ConfigSubsection, ConfigInteger, ConfigText, ConfigSelection, getConfigListEntry, ConfigSequence, ConfigSubList import DVDTitle import xml.dom.minidom +from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_FONTS class ConfigColor(ConfigSequence): def __init__(self, default = [128,128,128]): @@ -125,6 +126,14 @@ class DVDProject: for key in self.filekeys: val = self.settings.dict()[key].getValue() if not fileExists(val): + if val[0] != "/": + if key.find("font") == 0: + val = resolveFilename(SCOPE_FONTS)+val + else: + val = resolveFilename(SCOPE_PLUGINS)+"Extensions/DVDBurn/"+val + if fileExists(val): + self.settings.dict()[key].setValue(val) + continue self.error += "\n%s '%s' not found" % (key, val) #except AttributeError: #print "loadProject AttributeError", self.error |
