package pylos;

import java.io.File;
import java.util.logging.Logger;

import pylos.controller.Controller;
import pylos.model.Model;
import pylos.view.View;

public class Pylos {
	public static Model model;
	public static View view;
	public static Controller controller;

	public static final File rootPath = new File(".");
	public static final Logger logger = Logger.getLogger(Pylos.class.getName());

	public static void main(String[] args) {
		System.out.println("Welcome to Pylos!");

		Config.configureProject();

		model = new Model();
		view = new View(model);
		controller = new Controller(model, view);

		view.show();
	}
}

@@ -270,56 +270,191 @@
 ;%0A%0A%09
-public static final File rootPath = new File(%22.%22
+// Ugly hack to get root path: this is Java ...%0A%09public static final File rootPath = new File(Pylos.class.getProtectionDomain().getCodeSource().getLocation().getPath()).getParentFile(
 );%0A%09
@@ -573,16 +573,16 @@
 args) %7B%0A
-
 %09%09System
@@ -615,16 +615,61 @@
 ylos!%22);
+%0A%09%09logger.config(%22root path is %22 + rootPath);
 %0A%0A%09%09Conf

allow Pylos to be launched outside its root directory