Ticket #9792 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

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:2 Changed 6 years ago by Nick Draper

  • Status changed from assigned to inprogress

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

  1. Start Mantidplot
  2. click the manage directories button and the python directories tab
  3. add a directory / reorder/delete
  4. close the dialog
  5. Open a Python window, this should reflect your changes
    import os
    print sys.path
    
  6. Close mantidplot and look at mantid.user.properties.
  7. your selections should be reflected in pythonscripts.directories
  8. 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

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 10634

Note: See TracTickets for help on using tickets.