changeset 33:442ace8fd8ed

global.schema fix
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 06 Jul 2020 22:29:03 -0600
parents 1016a9f81684
children 61800d34be0d
files src/nabble/model/DbGlobalUpdater.java src/nabble/model/DbGlobalUpdater.jmp
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/nabble/model/DbGlobalUpdater.java	Mon Jul 06 21:43:38 2020 -0600
+++ b/src/nabble/model/DbGlobalUpdater.java	Mon Jul 06 22:29:03 2020 -0600
@@ -15,7 +15,11 @@
 	private static final int version = 15;
 
 	private static final boolean skipSlowSteps = Init.get("skipSlowSteps",false);
-	private static final File globalSchemaFile = new File("src/nabble/data/global.schema");
+	private static final File globalSchemaFile;
+	static {
+		String homeDir = (String)Init.get("home_dir");
+		globalSchemaFile = new File(homeDir+"src/nabble/data/global.schema");
+	}
 
 	private static final String GLOBAL = "global";
 
--- a/src/nabble/model/DbGlobalUpdater.jmp	Mon Jul 06 21:43:38 2020 -0600
+++ b/src/nabble/model/DbGlobalUpdater.jmp	Mon Jul 06 22:29:03 2020 -0600
@@ -15,7 +15,11 @@
 	private static final int version = 15;
 
 	private static final boolean skipSlowSteps = Init.get("skipSlowSteps",false);
-	private static final File globalSchemaFile = new File("src/nabble/data/global.schema");
+	private static final File globalSchemaFile;
+	static {
+		String homeDir = (String)Init.get("home_dir");
+		globalSchemaFile = new File(homeDir+"src/nabble/data/global.schema");
+	}
 
 	private static final String GLOBAL = "global";