aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2010-11-17 12:10:24 +0100
committerFraxinas <andreas.frisch@multimedia-labs.de>2010-11-17 12:10:24 +0100
commitf3a9c38ed6a5c75deaf360ead55dfea74f86a83c (patch)
treefd2de29bb683617f9fb0e9b9d3d13f09a59f2647 /lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
parentfb91533bb1d293bdb0691bfcc1d15da9268782fe (diff)
downloadenigma2-f3a9c38ed6a5c75deaf360ead55dfea74f86a83c.tar.gz
enigma2-f3a9c38ed6a5c75deaf360ead55dfea74f86a83c.zip
get rid off evil absolute paths in dvdburn and nfiflash (fixes bug #620)
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn/DVDProject.py')
-rw-r--r--lib/python/Plugins/Extensions/DVDBurn/DVDProject.py9
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