2019-12-14 11:16:31 -06:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import runpy
|
|
|
|
from os import scandir
|
|
|
|
from os.path import dirname, abspath
|
|
|
|
|
|
|
|
this_dir = dirname(abspath(__file__))
|
|
|
|
|
|
|
|
def filename(f):
|
2020-01-31 04:35:25 -06:00
|
|
|
return f.name
|
2019-12-14 11:16:31 -06:00
|
|
|
|
|
|
|
with scandir(dirname(abspath(__file__))) as it:
|
2020-01-31 04:35:25 -06:00
|
|
|
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)
|