Skip to content

Commit 861582e

Browse files
committed
README.md: prepend to PYTHONPATH for gnatdbg
This enables one to override an already installed gnatdbg package, available in the Python interpreter. Change-Id: I7ce530f84324c3ef982af72fb09e4ad8a38ff63b For GitHub issue AdaCore#4 no-tn-check
1 parent ba80f7f commit 861582e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ is probably the following:
2121
- Open your GDB configuration file (`$HOME/.gdbinit`)
2222
- Add the following commands:
2323

24-
python import sys; sys.path.append("$DIR")
24+
python import sys; sys.path.insert(0, "$DIR")
2525
python import gnatdbg; gnatdbg.setup()
2626

2727
... and make sure you replaced `$DIR` in the above commands with the
28-
directory where you moved `gnatdbg`.
28+
directory where you moved `gnatdbg` (not the path to `gnatdbg`. itself).
2929

3030
- Congratulations, you are done!
3131

0 commit comments

Comments
 (0)