Skip to content

Instantly share code, notes, and snippets.

@prasincs
Created August 7, 2009 10:10
Show Gist options
  • Select an option

  • Save prasincs/163819 to your computer and use it in GitHub Desktop.

Select an option

Save prasincs/163819 to your computer and use it in GitHub Desktop.
"""
Author: Prasanna Gautam
Purpose: Get all the jar files in the current working directory and put them in the jython path so that the packages can be imported.
"""
import sys
import glob
currDir = sys.currentWorkingDir()
sys.path.append(map(lambda x: currDir+"/"+x, glob.glob('*.jar')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment