org.python.core.util.RelativeFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-slim Show documentation
Show all versions of jython-slim Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
The newest version!
/* Copyright (c) 2007 Jython Developers */
package org.python.core.util;
import java.io.File;
import org.python.core.PySystemState;
/**
* A java.io.File whose initial path is resolved relative to the
* current SystemState's current working directory.
*
* @author Philip Jenvey
*/
public class RelativeFile extends File {
public RelativeFile(String pathname) {
super(PySystemState.getPathLazy(pathname));
}
public RelativeFile(String parent, String child) {
super(PySystemState.getPathLazy(parent), child);
}
}