Skip to content

Instantly share code, notes, and snippets.

@kastork
Created February 3, 2011 20:57
Show Gist options
  • Save kastork/810179 to your computer and use it in GitHub Desktop.
Save kastork/810179 to your computer and use it in GitHub Desktop.
Here's a quick little method to take control of the classpath right inside a Jython script.
import sys
...
def setClassPath():
libDir = "/path/to/my/jar/files/"
classPaths = [
"foo.jar",
"bar.jar"
]
for classPath in classPaths:
sys.path.append(libDir + classPath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment