All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.python.core.util.RelativeFile Maven / Gradle / Ivy

Go to download

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy