mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4136 Flow Characteristics : Support relative export paths
This commit is contained in:
parent
0f0e440185
commit
7213ae7e98
@ -66,9 +66,12 @@ RicfCommandResponse RicfExportFlowCharacteristics::execute()
|
||||
|
||||
{
|
||||
QString exportFileName = m_fileName();
|
||||
if (exportFileName.isEmpty())
|
||||
QFileInfo fi(exportFileName);
|
||||
if (!fi.isAbsolute())
|
||||
{
|
||||
QString exportFolder = RiaApplication::instance()->createAbsolutePathFromProjectRelativePath("flow_characteristics");
|
||||
QString relativePath = fi.path();
|
||||
|
||||
QString exportFolder = RiaApplication::instance()->createAbsolutePathFromProjectRelativePath(relativePath);
|
||||
|
||||
QDir exportDir(exportFolder);
|
||||
if (!exportDir.exists())
|
||||
@ -80,7 +83,7 @@ RicfCommandResponse RicfExportFlowCharacteristics::execute()
|
||||
}
|
||||
}
|
||||
|
||||
exportFileName = exportFolder + QString("/flow_characteristics_data.txt");
|
||||
exportFileName = exportFolder + "/" + fi.fileName();
|
||||
}
|
||||
|
||||
RimFlowPlotCollection* flowPlotColl = RiaApplication::instance()->project()->mainPlotCollection->flowPlotCollection();
|
||||
|
Loading…
Reference in New Issue
Block a user