buildframework/helium/builder/template/easy-install.pth.ftl
changeset 640 ac0bbc1e5d79
parent 628 7c4a911dc066
equal deleted inserted replaced
639:0e65f93be3cb 640:ac0bbc1e5d79
    18 Description:
    18 Description:
    19 
    19 
    20 ============================================================================
    20 ============================================================================
    21 -->
    21 -->
    22 import sys; sys.__plen = len(sys.path)
    22 import sys; sys.__plen = len(sys.path)
    23 <#list project.getReference('egg.deps.fileset').toString().split(';') as file>
    23 <#list project.getReference('egg.deps.fileset').toString()?split(ant['path.separator']) as file>
    24 ./${file}
    24 <#assign path = file?split("[\\\\/]", 'r')>
       
    25 ./${path[path?size-2]}/${path?last}
    25 </#list>
    26 </#list>
    26 import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
    27 import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)