A folder is taken from the input file name (if it contains one).
Removed spaces.
Adding test case for issue CR23846
The test for bug 23846 depends on this fix (24115) and the source files of 23846. Therefore the test on 23846 shouldn't participate in the test for 24115.
if (fic.open(argv[2], ios::in)) {
+ // Get path of the VRML file.
+ OSD_Path path(argv[2]);
+ TCollection_AsciiString vrmlDir(".");
+ TCollection_AsciiString disk = path.Disk();
+ TCollection_AsciiString trek = path.Trek();
+ if (!trek.IsEmpty())
+ {
+ if (!disk.IsEmpty())
+ vrmlDir = disk;
+ else
+ vrmlDir.Clear();
+ trek.ChangeAll('|', '/');
+ vrmlDir += trek;
+ }
+
VrmlData_Scene aScene;
- aScene.SetVrmlDir (".");
+ aScene.SetVrmlDir (vrmlDir);
aScene << aStream;
const char * aStr = 0L;
switch (aScene.Status()) {