Skip to content

Commit ea549e6

Browse files
committed
Make it possible to treat ExtraScriptValue as a path
This lets some plugins still work despite the breaking change Fixes #3310
1 parent 86cde7b commit ea549e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mkdocs/config/config_options.py

+3
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,9 @@ def __init__(self, path: str = '', config_file_path=None):
941941
def __str__(self):
942942
return self.path
943943

944+
def __fspath__(self):
945+
return self.path
946+
944947

945948
class ExtraScript(SubConfig[ExtraScriptValue]):
946949
def run_validation(self, value: object) -> ExtraScriptValue:

0 commit comments

Comments
 (0)