]> Creatis software - gdcm.git/blobdiff - Testing/TestDicomDir.cxx
test
[gdcm.git] / Testing / TestDicomDir.cxx
index 9b6855b701d89420ce598f5ac0fee3bf50ac3d29..1cccb798bd5a265cf6f6685c54c9eb1b4a29f2c7 100644 (file)
@@ -31,9 +31,11 @@ int testDicomDir(int argc, char* argv[])
    std::string file; 
    if (argc > 1) 
       file = argv[1];    
-   else        
-      file = "../gdcmData/DICOMDIR";
-      
+   else {
+      file += GDCM_DATA_ROOT;
+      file += "/DICOMDIR";
+    }
+
    e1 = new gdcmDicomDir(file.c_str());
        if (argc > 2) {
           int level = atoi(argv[2]);