Roundup Tracker - Issues

Message7364

Author marcus.priesch
Recipients marcus.priesch, rouilj
Date 2021-11-09.18:12:55
Message-id <c093fec4-798d-57b4-a6c6-df7ce48ad111@priesch.co.at>
In-reply-to <20211109174727.BA9AF6A02DE@pe15.cs.umb.edu>
Hi John,

you are definitely right, we should solve the infinite loop ;)

its happening here:

 >          while tail != 'lib' and head != '':
 >              head, tail = os.path.split(head)

 >>> get_path("platlib")
'/home/pr/work/projects/5t-roundup/ve2/lib64/python2.7/site-packages'

it consumes everything (as no "lib" anywhere) and stays at head == "/"

 >>> os.path.split ("/")
('/', '')

so maybe exit the loop with "error" if head == "/" and tail == ""

regards,
marcus.
History
Date User Action Args
2021-11-09 18:12:55marcus.prieschsetrecipients: + marcus.priesch, rouilj
2021-11-09 18:12:55marcus.prieschlinkissue2551169 messages
2021-11-09 18:12:55marcus.prieschcreate