Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v2.1.1rc3
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 16 lines (13 sloc) 0.496 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import os.path
import string

l = ['_'] * 256
for c in string.digits + string.letters:
    l[ord(c)] = c
_pathNameTransChars = string.join(l, '')
del l, c

def convertTmplPathToModuleName(tmplPath,
                                _pathNameTransChars=_pathNameTransChars,
                                splitdrive=os.path.splitdrive,
                                translate=string.translate,
                                ):
    return translate(splitdrive(tmplPath)[1], _pathNameTransChars)
Something went wrong with that request. Please try again.