diff --git a/repos/system_upgrade/common/actors/scancustommodifications/libraries/scancustommodifications.py b/repos/system_upgrade/common/actors/scancustommodifications/libraries/scancustommodifications.py index 62c6012019..a34eb5d3c0 100644 --- a/repos/system_upgrade/common/actors/scancustommodifications/libraries/scancustommodifications.py +++ b/repos/system_upgrade/common/actors/scancustommodifications/libraries/scancustommodifications.py @@ -42,7 +42,7 @@ def deduce_actor_name(a_file): # NOTE(ivasilev) Actors reside only in actor.py files, so AST processing any other file can be skipped. # In case this function has been called on a non-actor file, let's go straight to recursive call on the assumed # location of the actor file. - if a_file.endswith('actor.py'): + if os.path.basename(a_file) == 'actor.py': data = None with open(a_file) as f: try: