I'm trying to build out some production test infrastructure and I'm straight up not having a good time. I've read all the wiki docs and all the forum posts I can find on this topic and I've tried everything I can think of.
Per the Jython instructions, I'm adding all the jars to my classpath using a shell script that also invokes my jython script:
#!/bin/bash
ccs_base_dir="/home/trey/ti/ccs1020/ccs/ccs_base"
dss_jar="${ccs_base_dir}/DebugServer/packages/ti/dss/java/dss.jar"
environment_jar="${ccs_base_dir}/DebugServer/packages/ti/dss/java/com.ti.ccstudio.scripting.environment_3.1.0.jar"
debug_engine_jar="${ccs_base_dir}/DebugServer/packages/ti/dss/java/com.ti.debug.engine_1.0.0.jar"
java_dir="/home/trey/ti/ccs1020/ccs/eclipse/jre"
export JAVA_HOME=${java_dir}
printenv JAVA_HOME
export CLASSPATH=${CLASSPATH}:${dss_jar}:${environment_jar}:${debug_engine_jar}
printenv CLASSPATH
jython singlecore.py
When this runs, jython can't find the jars and tell me "ImportError: No module named ti".
Alternatively, my debugging led me to try passing the class path in on the command line to jython:
jython -Dpython.path="${dss_jar}":"${environment_jar}":"${debug_engine_jar}" singlecore.py
This gets me a little further but I get the "SEVERE: Could not start server: DebugServer.1: Can not connect to DebugServer. null" error. I've read the post from Ki that suggests only using the classpath way to get the jars in, but that's not working so I'm at a loss as to what's going on. I have read a couple places that jython doesn't find stuff on the classpath but haven't found any resolutions.
My ultimate goal is to get DSS hooked up to OpenHTF in python so I can do production device programming and testing. Any suggestions on how to fix the above issues or otherwise accomplish my goal?
Trey