Skip to content

Commit

Permalink
Don't resolve symlinks.
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Apr 19, 2023
1 parent cdcd246 commit a6f3d8c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions astroid/modutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,6 @@ def _get_relative_base_path(filename, path_to_check):
if os.path.normcase(abs_filename).startswith(path_to_check):
importable_path = abs_filename

real_filename = os.path.realpath(filename)
if os.path.normcase(real_filename).startswith(path_to_check):
importable_path = real_filename

if importable_path:
base_path = os.path.splitext(importable_path)[0]
relative_base_path = base_path[len(path_to_check) :]
Expand Down

0 comments on commit a6f3d8c

Please sign in to comment.