Correctly check for the 'core' folder

pull/977/head
Travis Ralston 6 years ago
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…
Cancel
Save