Revision 596 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.lib/org.gvsig.scripting.lib.impl/src/main/resources/org/gvsig/scripting/langs/python/init.txt
init.txt | ||
---|---|---|
5 | 5 |
|
6 | 6 |
def __init_python_path(): |
7 | 7 |
import sys |
8 |
|
|
9 |
del sys.path[3:] |
|
8 | 10 |
|
9 | 11 |
# Add folder of script |
10 | 12 |
path = script.getFile().getParentFile().getCanonicalPath() |
Also available in: Unified diff