* Adds "classpath" entry. Calls {@link #addDirectory} if path refers to a
* dir, {@link #addJarToPackages(java.io.File, boolean)} with param cache
* true if path refers to a jar.
*/
public void addClassPath(String path) {
PyList paths = new PyString(path).split(java.io.File.pathSeparator);
for (int i = 0; i < paths.__len__(); i++) {
String entry = paths.pyget(i).toString();
if (entry.endsWith(".jar") || entry.endsWith(".zip")) {
addJarToPackages(new File(entry), true);
} else {
File dir = new File(entry);
if (entry.length() == 0 || dir.isDirectory()) {