package test;

import java.io.File;
import java.io.IOException;
import javax.swing.JFileChooser;

/**A simple way to run the latest code without having to compile. A popup menu
 * will prompt user for a file to run.
 *
 * @author Michael Quintin
 */
public class RunBionet {

    public static void main(String[] args) throws IOException{
        if (args.length == 0){
        String desktopPath = System.getProperty("user.home") + "/Desktop";

        JFileChooser fc = new JFileChooser(desktopPath);
        fc.showOpenDialog(null);
        File file = fc.getSelectedFile();
        String path = file.getPath();
        args = new String[] {path};
        }

        bionet.Main.main(args);

    }

}

