mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-17 08:34:11 +02:00
Correctly check for the 'core' folder
This commit is contained in:
parent
c8a8f13623
commit
464f4f5f21
|
|
@ -106,7 +106,8 @@ def check_example_dir(exampledir, schemadir):
|
||||||
if filename.startswith("."):
|
if filename.startswith("."):
|
||||||
# Skip over any vim .swp files.
|
# Skip over any vim .swp files.
|
||||||
continue
|
continue
|
||||||
if os.dirname(os.path.join(root, filename)) == "core":
|
cwd = os.path.basename(os.path.dirname(os.path.join(root, filename)))
|
||||||
|
if cwd == "core":
|
||||||
# Skip checking the underlying definitions
|
# Skip checking the underlying definitions
|
||||||
continue
|
continue
|
||||||
examplepath = os.path.join(root, filename)
|
examplepath = os.path.join(root, filename)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue