Revert "Merge pull request #239 from netbox-community/develop"

This reverts commit 80f514fa90, reversing
changes made to b0b20aa6ba.
This commit is contained in:
Alexander GITTINGS 2020-03-11 10:17:05 +00:00
parent 197ad86009
commit c429011697
8 changed files with 32 additions and 80 deletions

View file

@ -7,12 +7,12 @@ from os.path import dirname, abspath
this_dir = dirname(abspath(__file__))
def filename(f):
return f.name
return f.name
with scandir(dirname(abspath(__file__))) as it:
for f in sorted(it, key = filename):
if f.name.startswith('__') or not f.is_file():
continue
print(f"Running {f.path}")
runpy.run_path(f.path)
for f in sorted(it, key = filename):
if f.name.startswith('__') or not f.is_file():
continue
print(f"Running {f.path}")
runpy.run_path(f.path)