diff --git a/Code/qtiplot/qtiplot/mantidplotrc.py b/Code/qtiplot/qtiplot/mantidplotrc.py index adc286765471af554ecea5ca4cd723bc21311913..ca04d82a695f0772b9f8456e76e1a8f71e118125 100644 --- a/Code/qtiplot/qtiplot/mantidplotrc.py +++ b/Code/qtiplot/qtiplot/mantidplotrc.py @@ -75,5 +75,8 @@ if __name__ == '__main__': calltip = args[index] + "," + calltip calltip = '(' + calltip.rstrip(',') + ')' return calltip + + import sys + sys.path.insert(0,'') else: raise ImportError("mantidplotrc.py is an initialization file for MantidPlot not an importable module") diff --git a/Code/qtiplot/qtiplot/src/main.cpp b/Code/qtiplot/qtiplot/src/main.cpp index 8da39551f41bd5694c12c904a5f47792e7c5fc7f..fa1735f778ba43644837ceac0872ca24924c8113 100644 --- a/Code/qtiplot/qtiplot/src/main.cpp +++ b/Code/qtiplot/qtiplot/src/main.cpp @@ -161,25 +161,12 @@ int main( int argc, char ** argv ) app.processEvents(); splash.showMessage("Release: " + QString(MANTIDPLOT_RELEASE_DATE),Qt::AlignLeft | Qt::AlignBottom); - QString path = argv[0]; - int i = path.lastIndexOf('/'); - if (i < 0) i = path.lastIndexOf('\\'); - if (i>=0) - { - path.remove(i,1000); - QDir::setCurrent(path); - } - bool factorySettings = false; if (args.contains("-d") || args.contains("--default-settings")) factorySettings = true; ApplicationWindow *mw = new ApplicationWindow(factorySettings); mw->restoreApplicationGeometry(); - /*if (mw->autoSearchUpdates){ - mw->autoSearchUpdatesRequest = true; - mw->searchForUpdates(); - }*/ mw->parseCommandLineArguments(args); t.wait(); splash.finish(mw);