explicitly localize gfe/vcmodule/vtec python files
This commit is contained in:
parent
59918c5fe4
commit
f31292846c
2 changed files with 24 additions and 3 deletions
|
@ -148,6 +148,7 @@ import com.raytheon.viz.gfe.types.MutableInteger;
|
||||||
* 10/30/2014 #3775 randerso Changed to createMutableDb before getting initial database inventory
|
* 10/30/2014 #3775 randerso Changed to createMutableDb before getting initial database inventory
|
||||||
* 01/13/2015 #3955 randerso Changed getProductDatabase() to return mutableDb for EditTopo
|
* 01/13/2015 #3955 randerso Changed getProductDatabase() to return mutableDb for EditTopo
|
||||||
* 03/12/2015 #4246 randerso Changes to support VCModules at base, site, and user levels
|
* 03/12/2015 #4246 randerso Changes to support VCModules at base, site, and user levels
|
||||||
|
* 06/06/2016 mjames@ucar Force localization of GFE/vcmodule/vtec Python files
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author chammack
|
* @author chammack
|
||||||
|
@ -3088,7 +3089,7 @@ public class ParmManager implements IParmManager, IMessageClient {
|
||||||
public ParmID fromExpression(String expression) {
|
public ParmID fromExpression(String expression) {
|
||||||
return new ABVParmID(this).parse(expression);
|
return new ABVParmID(this).parse(expression);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -3107,7 +3108,7 @@ public class ParmManager implements IParmManager, IMessageClient {
|
||||||
for (LocalizationContext context : contexts) {
|
for (LocalizationContext context : contexts) {
|
||||||
LocalizationFile[] files = pathMgr.listFiles(context,
|
LocalizationFile[] files = pathMgr.listFiles(context,
|
||||||
FileUtil.join("gfe", "vcmodule"), new String[] { "py" },
|
FileUtil.join("gfe", "vcmodule"), new String[] { "py" },
|
||||||
false, true);
|
true, true);
|
||||||
for (LocalizationFile lf : files) {
|
for (LocalizationFile lf : files) {
|
||||||
try {
|
try {
|
||||||
String modName = lf.getFile(false).getName()
|
String modName = lf.getFile(false).getName()
|
||||||
|
@ -3119,6 +3120,26 @@ public class ParmManager implements IParmManager, IMessageClient {
|
||||||
e);
|
e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
files = pathMgr.listFiles(context, FileUtil.join(
|
||||||
|
"python"), new String[] { "py" },
|
||||||
|
true, true);
|
||||||
|
for (LocalizationFile lf : files) {
|
||||||
|
try {
|
||||||
|
lf.getFile(true);
|
||||||
|
} catch (LocalizationException e) {
|
||||||
|
statusHandler.error("Error getting local file " + lf, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
files = pathMgr.listFiles(context, FileUtil.join(
|
||||||
|
"vtec"), new String[] { "py" },
|
||||||
|
true, true);
|
||||||
|
for (LocalizationFile lf : files) {
|
||||||
|
try {
|
||||||
|
lf.getFile(true);
|
||||||
|
} catch (LocalizationException e) {
|
||||||
|
statusHandler.error("Error getting local file " + lf, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<VCModule> definitions = new ArrayList<VCModule>(modMap.size());
|
List<VCModule> definitions = new ArrayList<VCModule>(modMap.size());
|
||||||
|
|
|
@ -367,7 +367,7 @@ public class GfePyIncludeUtil extends PythonIncludePathUtil {
|
||||||
String userDir = getPath(PATH_MANAGER.getContext(
|
String userDir = getPath(PATH_MANAGER.getContext(
|
||||||
LocalizationType.COMMON_STATIC, LocalizationLevel.USER),
|
LocalizationType.COMMON_STATIC, LocalizationLevel.USER),
|
||||||
VCMODULES);
|
VCMODULES);
|
||||||
return PyUtil.buildJepIncludePath(userDir, siteDir, baseDir);
|
return PyUtil.buildJepIncludePath(userDir, siteDir, baseDir, "/awips2/python/lib/python2.7/site-packages/gfe");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getVCModUtilsIncludePath() {
|
public static String getVCModUtilsIncludePath() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue