Skip to content

Commit

Permalink
Changes after pstodulk's review
Browse files Browse the repository at this point in the history
- Use os.path.basename to check that dealing with actor
  file
  • Loading branch information
fernflower committed Jan 11, 2024
1 parent 6d9be1a commit c65903c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c65903c

Please sign in to comment.