]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/pmml/Test/PMMLBasicsTest1.cxx
Salome HOME
YACS_ROOT_DIR variable suppressed from PMML tests
[modules/yacs.git] / src / pmml / Test / PMMLBasicsTest1.cxx
index f99a70d07e8337a78fc81c17cc19f1de5a2c4d11..c30b90039c288516c731170c454d9e674581f4ca 100755 (executable)
@@ -27,20 +27,13 @@ using namespace std;
 
 void PMMLBasicsTest1::setUp()
 {
+    resourcesDir = "samples/";
 #ifdef WIN32
-    const char* p = std::getenv("YACS_ROOT_DIR");
-    std::string strP("");
-    if (p) 
-        strP = std::string(p);
-    else 
-        throw std::string("unable to get YACS_ROOT_DIR");
-    resourcesDir = strP;
-    resourcesDir += "/share/salome/resources/pmml/";
     const char* user = std::getenv("USERPROFILE");
     std::string strUser("");
-    if (user) 
+    if (user)
         strUser = std::string(user);
-    else 
+    else
         throw std::string("unable to get USERPROFILE");
     tmpDir = strUser;
     tmpDir += "\\tmp";
@@ -48,14 +41,12 @@ void PMMLBasicsTest1::setUp()
     std::string cmd = "mkdir " + tmpDir; 
     system( cmd.c_str() );  
 #else
-    resourcesDir =  getenv("YACS_ROOT_DIR");
-    resourcesDir += "/share/salome/resources/pmml/";
     tmpDir = "/tmp/";
     tmpDir += getenv("USER");
     tmpDir += "/PmmlUnitTest/";
     std::string cmd = "mkdir -p " + tmpDir; 
     system( cmd.c_str() );  
-#endif    
+#endif
 }
 
 void PMMLBasicsTest1::tearDown()