Created
August 7, 2009 10:10
-
-
Save prasincs/163819 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| 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