Skip to content

Commit

Permalink
Refs #8768 Use full file path when reloading.
Browse files Browse the repository at this point in the history
This will only effect users loading a file outside their managed directories.
  • Loading branch information
Samuel Jackson committed Jan 30, 2014
1 parent b108c13 commit c0d0bdd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/MantidQt/CustomInterfaces/src/Fury.cpp
Expand Up @@ -66,10 +66,11 @@ namespace IDA
QString pyInput =
"from IndirectDataAnalysis import fury\n";

//in case the user removed the workspace somehow
//in case the user removed the workspace somehow, attempt to reload workspace
if(!Mantid::API::AnalysisDataService::Instance().doesExist(wsName.toStdString()))
{
pyInput += wsName + " = LoadNexus('"+wsName+".nxs')\n";
QString fileName = uiForm().furyfit_inputFile->getFirstFilename();
pyInput += wsName + " = LoadNexus('"+fileName+".nxs')\n";
}

pyInput += "samples = [r'" + wsName + "']\n"
Expand Down

0 comments on commit c0d0bdd

Please sign in to comment.