mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-04 13:23:43 +01: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("."):
|
||||
# Skip over any vim .swp files.
|
||||
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
|
||||
continue
|
||||
examplepath = os.path.join(root, filename)
|
||||
|
|
|
|||
Loading…
Reference in a new issue