Ticket #7080 (closed: duplicate)
pythonalgorithms.directory key is still used in GUI dialog
Reported by: | Martyn Gigg | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | major | Milestone: | Release 2.5.3 |
Component: | Mantid | Keywords: | PatchCandidate,Released |
Cc: | Blocked By: | ||
Blocking: | Tester: | Owen Arnold |
Description
From James Lord,
I had a directory with a few Mantid algorithms of my own ready to load on start up. Starting Mantid 2.5 I get an orange warning error: "The Python algorithms key 'pythonalgorithms.directories' in 'C:\MantidInstall\bin\Mantid.user.properties' has been deprecated. Please add 'C:/MantidInstall/UserAlgorithms/AutoLoaded' to the 'user.python.plugins.directories' key instead. Future release will not check the old key." I looked in Mantid.user.properties and temporarily commented out the line #pythonalgorithms.directories=C:/MantidInstall/UserAlgorithms/AutoLoaded and restarted Mantid. Now no error, but no User algorithms auto loaded either. So I went to View-Preferences-Mantid-Directories where the "Python Algorithms" box is now empty. I put my directory back in, then "OK" and restart Mantid. The orange warning is back! And in the properties file, Mantid has written a new pythonalgorithms.directories line for me. (my commented out one is still there too, and my algorithms are back in the list) Finally I reopened Mantid.user.properties in Notepad and manually edited the key name of the offending line to 'user.python.plugins.directories' as it asks. Now I have algorithms and no warnings. So maybe it's the Preferences dialog box that is obsolete?
Change History
comment:1 Changed 7 years ago by Martyn Gigg
- Keywords PatchCandidate added
- Milestone changed from Release 2.6 to Release 2.5.3
comment:2 Changed 7 years ago by Martyn Gigg
- Status changed from new to verify
- Resolution set to duplicate
This was resolved under #7103
comment:3 Changed 7 years ago by Owen Arnold
- Status changed from verify to verifying
- Tester set to Owen Arnold
comment:4 Changed 7 years ago by Owen Arnold
- Status changed from verifying to closed
I tested this as part of the release 2.5.3 code review.
Note: See
TracTickets for help on using
tickets.