Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_Build_1000 / extensions / extScripting / scripts / jython / startup.py @ 11885

History | View | Annotate | Download (562 Bytes)

1
print "*** running startup.py..."
2

    
3
True = 1 == 1
4
False = 1 == 0
5

    
6
import sys
7
from java.io import File
8

    
9
sys.gvSIG = gvSIG
10

    
11
# Add current path to path
12
try:
13
  sys.path.append(File(params.get("fileName")).getParent())
14
except:
15
  pass
16

    
17
# Add Scripts/jython/Libs to path
18
sys.path.append(gvSIG.getScriptsDirectory()+File.separatorChar+"jython"+File.separatorChar+"Lib")
19

    
20
# Add Scripts/jython to path
21
sys.path.append(gvSIG.getScriptsDirectory()+File.separatorChar+"jython")
22

    
23
# Add Scripts to path
24
sys.path.append(gvSIG.getScriptsDirectory())
25

    
26
print "*** startup.py... OK "