3 SCOPE_TRANSPONDERDATA = 0
11 SCOPE_TRANSPONDERDATA: "/etc/",
12 SCOPE_SYSETC: "/etc/",
13 SCOPE_FONTS: "/usr/share/fonts/",
15 SCOPE_SKIN: "/usr/share/tuxbox/enigma2/",
16 SCOPE_SKIN_IMAGE: "/usr/share/tuxbox/enigma2/",
18 SCOPE_USERETC: "" # user home directory
21 def resolveFilename(scope, base):
22 # in future, we would check for file existence here,
23 # so we can provide default/fallbacks.
25 # FIXME: we also have to handle DATADIR etc. here.
26 return defaultPaths[scope] + base
28 # this is only the BASE - an extension must be added later.
29 def getRecordingFilename(basename):
31 # filter out non-allowed characters
32 non_allowed_characters = "/.\\"
36 if c in non_allowed_characters:
42 path = "/hdd/movies/" + filename