Skip to content

Commit 49b2dfa

Browse files
Backport PR jupyterlab#11427: Handle relative paths to themePath and schemaDir (jupyterlab#11428)
Co-authored-by: Jason Grout <[email protected]>
1 parent 2d6545f commit 49b2dfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyterlab/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,10 +2071,10 @@ def _validate_extension(data):
20712071
if mime_extension and mime_extension not in files:
20722072
messages.append('Missing mimeExtension module "%s"' % mime_extension)
20732073

2074-
if themePath and not any(f.startswith(themePath) for f in files):
2074+
if themePath and not any(f.startswith(str(Path(themePath))) for f in files):
20752075
messages.append('themePath is empty: "%s"' % themePath)
20762076

2077-
if schemaDir and not any(f.startswith(schemaDir) for f in files):
2077+
if schemaDir and not any(f.startswith(str(Path(schemaDir))) for f in files):
20782078
messages.append('schemaDir is empty: "%s"' % schemaDir)
20792079

20802080
return messages

0 commit comments

Comments
 (0)