Correctly check for the 'core' folder

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