Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07eea7b
)
Add a more comfort way to specify path to user ImportExport file
author
eap
<eap@opencascade.com>
Tue, 30 Aug 2005 12:50:44 +0000
(12:50 +0000)
committer
eap
<eap@opencascade.com>
Tue, 30 Aug 2005 12:50:44 +0000
(12:50 +0000)
src/GEOMImpl/GEOMImpl_IInsertOperations.cxx
patch
|
blob
|
history
diff --git
a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx
b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx
index 3ef52949892fb3a66a3b99da22d0d39e756a915a..9affafa27a001ed8cb976342e5ab277350836b3d 100644
(file)
--- a/
src/GEOMImpl/GEOMImpl_IInsertOperations.cxx
+++ b/
src/GEOMImpl/GEOMImpl_IInsertOperations.cxx
@@
-358,12
+358,21
@@
Standard_Boolean GEOMImpl_IInsertOperations::InitResMgr()
#else
aResDir += "/share/salome/resources";
#endif
#else
aResDir += "/share/salome/resources";
#endif
- TCollection_AsciiString aUserResDir (getenv("HOME"));
+ char * dir = getenv("GEOM_ENGINE_RESOURCES_DIR");
+ TCollection_AsciiString aUserResDir;
+ if ( dir )
+ {
+ aUserResDir = dir;
+ }
+ else
+ {
+ aUserResDir = getenv("HOME");
#ifdef WNT
#ifdef WNT
- aUserResDir += "\\.salome\\resources";
+
aUserResDir += "\\.salome\\resources";
#else
#else
- aUserResDir += "/.salome/resources";
+
aUserResDir += "/.salome/resources";
#endif
#endif
+ }
myResMgr = new Resource_Manager ("ImportExport", aResDir, aUserResDir, Standard_False);
if (!myResMgr->Find("Import") && !myResMgr->Find("Export")) {
myResMgr = new Resource_Manager ("ImportExport", aResDir, aUserResDir, Standard_False);
if (!myResMgr->Find("Import") && !myResMgr->Find("Export")) {