]> jspc29.x-matter.uni-frankfurt.de Git - mvdsensorcontrol.git/commitdiff
jtageditor gets conf and spec dir now from Environment.pm
authorMichael Wiebusch <stratomaster@gmx.net>
Wed, 21 Aug 2013 11:38:57 +0000 (13:38 +0200)
committerMichael Wiebusch <stratomaster@gmx.net>
Wed, 21 Aug 2013 11:38:57 +0000 (13:38 +0200)
tools/jtageditor.pl

index 61aece86f844b2ea64e41cef22732e413b3794a8..b12bd15af5175488441608ffa803f14961e8a7ba 100755 (executable)
@@ -59,7 +59,9 @@ require Common;
 require xmlOperations;
 require xmlRendering;
 
-
+use FindBin;
+use lib "$FindBin::Bin/..";
+use Environment;
 
 
 my %cgiHash = &read_input;
@@ -76,8 +78,12 @@ if ( !keys %cgiHash )
 
 
 
-our $confDir = '../config';
-our $specDir = '../specs';
+our $confDir = CONFDIR;
+our $specDir = SPECDIR;
+
+
+
+
 # our $editorRefreshCommand="reloadSetTree()";
 setEditorRefreshCommand("reloadSetTree()");