Ticket #5137 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Opening a script adds the whole script path to sys.path in Python

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: critical Milestone: Release 2.1
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Roman Tolchenov

Description

Opening an existing script should add the script's directory to the path instead it adds the full filename.

To reproduce:

  • Open the scripting window in MantidPlot;
  • Open an existing script
  • type print sys.path, highlight it & execute the selection
  • the path will contain the full file path

Change History

comment:1 Changed 8 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Martyn Gigg

Append only a script's directory to the Python path. Refs #5137

Changeset: cbd971704b0f2fcc3f23ea40fe6c2ac9806270d0

comment:3 Changed 8 years ago by Martyn Gigg

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

comment:4 Changed 8 years ago by Martyn Gigg

Append only a script's directory to the Python path. Refs #5137

Changeset: cbd971704b0f2fcc3f23ea40fe6c2ac9806270d0

comment:5 Changed 8 years ago by Roman Tolchenov

  • Status changed from verify to verifying
  • Tester set to Roman Tolchenov

comment:6 Changed 8 years ago by Roman Tolchenov

  • Status changed from verifying to closed

Checked that the directory is added to sys.path not the full file path.

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5983

Note: See TracTickets for help on using tickets.