Skip to content

Commit

Permalink
Cleanup code when splitting path contains in elf files
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-buil committed Dec 13, 2024
1 parent 0c0dbe8 commit 12775a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cosy.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ def parse_elffile(elffile, prefix, appdir, riot_base=None):
if m:
d = {'arcv': '', 'obj': '', 'size': -1, 'alias': []}
d.update(m.groupdict())
if d['path'] is None:
d['path'] = ""
d['path'] = d['path'].split(path.sep)
d['path'] = d.get('path', "").split(path.sep)
if d['dir'] == appdir:
if d['path'][0] == "":
d['path'][0] = "app"
Expand Down

0 comments on commit 12775a6

Please sign in to comment.