Ticket #9792 (closed: fixed)
Python Script Directory Issue in MantidPlot
Reported by: | Owen Arnold | Owned by: | Nick Draper |
---|---|---|---|
Priority: | critical | Milestone: | Release 3.2 |
Component: | Framework | Keywords: | |
Cc: | martyn.gigg@… | Blocked By: | |
Blocking: | Tester: | Martyn Gigg |
Description
- Go to Manage User Directories
- Go to the Python Script Directories Tab
- Browse to Directory and browse to any directory on your file system
- Click OK
- Now open your user properties file. You'll see the new entry under usersearch.directories this path is not appended to the PYTHONPATH and is therefore useless
I think we should fix this issue prior to the 3.2 release
Change History
comment:1 Changed 6 years ago by Nick Draper
- Owner changed from Anyone to Nick Draper
- Status changed from new to assigned
comment:3 Changed 6 years ago by Nick Draper
correct the key python dirs are saved to. re #9792
Changeset: fd7546d1349cb21300748931ac9b9b0ce7223cee
comment:4 Changed 6 years ago by Nick Draper
- Status changed from inprogress to verify
- Resolution set to fixed
now saves and loads from the pythonscripts.directories key.
To test
- Start Mantidplot
- click the manage directories button and the python directories tab
- add a directory / reorder/delete
- close the dialog
- Open a Python window, this should reflect your changes
import os print sys.path
- Close mantidplot and look at mantid.user.properties.
- your selections should be reflected in pythonscripts.directories
- reopen mantidplot,and the fialog, check your changes have been preserved.
comment:5 Changed 6 years ago by Martyn Gigg
- Status changed from verify to verifying
- Tester set to Martyn Gigg
comment:6 Changed 6 years ago by Martyn Gigg
There are some improvements to be made around how it handles appending/removing paths. #9806 has been opened to cover these.
comment:7 Changed 6 years ago by Martyn Gigg
- Status changed from verifying to closed
Merge remote-tracking branch 'origin/feature/9792_PythonScripts_Dialog'
Full changeset: e8acd6f388eee852fee42428d34629121e24cf74
Note: See
TracTickets for help on using
tickets.