Revision 9215 trunk/extensions/extScripting/scripts/jython/startup.py

View differences:

startup.py
9 9
sys.gvSIG = gvSIG
10 10

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

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

Also available in: Unified diff