Ticket #10714 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

mantid_reset_settings.sh doesn't find python script

Reported by: Peter Peterson Owned by: Dan Nixon
Priority: blocker Milestone: Release 3.3
Component: GUI Keywords:
Cc: Blocked By:
Blocking: Tester: Lottie Greenwood

Description

I just tried to run

$ /opt/mantidnightly/bin/mantid_reset_settings.sh
python: can't open file './mantid_qt_settings_editor.py': [Errno 2] No such file or directory

The bash script needs to be modified to look for the python script that does the actual work in its current directory. Nobody will cd into the /opt/mantidnightly/bin/ before running the cleaning script.

Change History

comment:1 Changed 6 years ago by Dan Nixon

  • Status changed from new to assigned

comment:2 Changed 6 years ago by Dan Nixon

To test:

  • Windows
    • Run [path to branch source]\Code\Mantid\MantidPlot\mantid_reset_settings.bat from Command Prompt
    • Should give output: Qt preferences cleared
    • Verify it still works when you are inside the directory
  • Unix
    • Run [path to branch source]/Code/Mantid/MantidPlot/mantid_reset_settings.sh from terminal
    • Should get output including: Qt preferences cleared
    • Verify it still works when you are inside the directory

comment:3 Changed 6 years ago by Dan Nixon

  • Status changed from assigned to inprogress

Fix reset script on Windows

Refs #10714

Changeset: d71ecd67457d628d1243754eb01ad19402f2565d

comment:4 Changed 6 years ago by Dan Nixon

Allow script to work from any folder on Unix

Refs #10714

Changeset: 0bffe4a6a1dfdbc8781168d2463565c26850b378

comment:5 Changed 6 years ago by Dan Nixon

  • Status changed from inprogress to verify
  • Resolution set to fixed

comment:6 Changed 6 years ago by Harry Jeffery

  • Status changed from verify to verifying
  • Tester set to Harry Jeffery

comment:7 Changed 6 years ago by Harry Jeffery

  • Status changed from verifying to verify
  • Tester Harry Jeffery deleted

Fixed on Ubuntu 14.04.

Returning to testing pool for Windows.

comment:8 Changed 6 years ago by Lottie Greenwood

  • Status changed from verify to verifying
  • Tester set to Lottie Greenwood

comment:9 Changed 6 years ago by Lottie Greenwood

  • Status changed from verifying to closed

Merge remote-tracking branch 'origin/bugfix/10714_reset_scripts_should_find_qt_script'

Full changeset: 396ae7e07b2f399356a065191943f93a04a317bb

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 11556

Note: See TracTickets for help on using tickets.