Ticket #5137 (closed: fixed)
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: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
Note: See
TracTickets for help on using
tickets.