Skip to content

Commit

Permalink
Avoid calling abspath to prevent running into an MkDocs bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Nov 12, 2023
1 parent 217bfec commit 131aac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymdownx/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(self, config, md):
base = config.get('base_path')
if isinstance(base, (str, os.PathLike)):
base = [base]
self.base_path = [os.path.abspath(b) for b in base]
self.base_path = base
self.restrict_base_path = config['restrict_base_path']
self.encoding = config.get('encoding')
self.check_paths = config.get('check_paths')
Expand Down

0 comments on commit 131aac0

Please sign in to comment.