Author Topic: %rp not expanding for python debugging  (Read 1939 times)

rowbearto

  • Senior Community Member
  • Posts: 2336
  • Hero Points: 132
%rp not expanding for python debugging
« on: November 12, 2020, 08:51:24 PM »
In my python project I have a configuration where the default script to run is relative to my project directory, so it is basically:

%rp../src/dir1/dir2/file.py

It runs fine when I do "execute".

But when I run debug the %rp is not getting expanded to the project directory and I see an error like below:

Code: [Select]
  File "/home/aptRoot/apttools/python/64/Python-3.8.0/lib/python3.8/runpy.py", line 231, in _get_code_from_file
    with open(fname, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '%rp../src/mc5u/MC5U/Tools/axf2bin/axf2bin.py'

For debug, it is also not expanding the %rp when it is in "Script arguments". When executing it does expand the %rp.
« Last Edit: November 12, 2020, 08:53:12 PM by rowbearto »

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: %rp not expanding for python debugging
« Reply #1 on: November 13, 2020, 01:06:34 PM »
That's a bug, I'll take a look at it this morning.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: %rp not expanding for python debugging
« Reply #2 on: November 13, 2020, 04:56:19 PM »
Fixed for the next 25.0.0 hotfix.