Skip to content

Commit

Permalink
Refs #4333. Make PyAlgs don't overwrite the new API
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Jan 10, 2012
1 parent d97919c commit 9dd1945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidPlot/mantidplotrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def get_default_python_api():
# Adding this fixes that and appears to do no harm elsewhere
from mantidsimple import *
elif _api == 2:
from mantid import *
from mantid.kernel.plugins import PyAlgLoader
# Make sure the Python algorithms are loaded as these all have to use the old API at the moment
loader = PyAlgLoader()
loader.load_modules()
# Create simple API
from mantid import *
from mantid.simpleapi import *
else:
raise Runtime("Unknown Python API version requested: %d" % _api)
Expand Down

0 comments on commit 9dd1945

Please sign in to comment.