示例#1
0
文件: spl.py 项目: netyum/hippyvm
def get_extension(interp, this):
    path = this.file_name
    filename = rpath.split(path)[1]
    name_split = filename.rsplit('.', 1)
    if len(name_split) == 2:
        filename, extension = name_split
    else:
        extension = ''
    return interp.space.wrap(extension)
示例#2
0
文件: spl.py 项目: mnazimek/hippyvm
def get_extension(interp, this):
    path = this.file_name
    filename = rpath.split(path)[1]
    return _extension(interp, filename)
示例#3
0
def get_extension(interp, this):
    path = this.file_name
    filename = rpath.split(path)[1]
    return _extension(interp, filename)