Updated music plugin to suport the full paths
[pyTivo.git] / Cheetah / convertTmplPathToModuleName.py
blob4f9d8eac2a33b95250054c2bee2df34dd924fd6d
1 import os.path
2 import string
4 l = ['_'] * 256
5 for c in string.digits + string.letters:
6 l[ord(c)] = c
7 _pathNameTransChars = string.join(l, '')
8 del l, c
10 def convertTmplPathToModuleName(tmplPath,
11 _pathNameTransChars=_pathNameTransChars,
12 splitdrive=os.path.splitdrive,
13 translate=string.translate,
15 return translate(splitdrive(tmplPath)[1], _pathNameTransChars)