587
|
1 |
<#--
|
|
2 |
============================================================================
|
|
3 |
Name : easy-install.pth.ftl
|
|
4 |
Part of : Helium AntLib
|
|
5 |
|
|
6 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
7 |
All rights reserved.
|
|
8 |
This component and the accompanying materials are made available
|
|
9 |
under the terms of the License "Eclipse Public License v1.0"
|
|
10 |
which accompanies this distribution, and is available
|
|
11 |
at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
12 |
|
|
13 |
Initial Contributors:
|
|
14 |
Nokia Corporation - initial contribution.
|
|
15 |
|
|
16 |
Contributors:
|
|
17 |
|
|
18 |
Description:
|
|
19 |
|
|
20 |
============================================================================
|
|
21 |
-->
|
|
22 |
import sys; sys.__plen = len(sys.path)
|
628
|
23 |
<#list project.getReference('egg.deps.fileset').toString()?split(ant['path.separator']) as file>
|
|
24 |
<#assign path = file?split("[\\\\/]", 'r')>
|
|
25 |
./${path[path?size-2]}/${path?last}
|
587
|
26 |
</#list>
|
|
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)
|