in scripts/check-ctrlcode.py [0:0]
def main():
args = sys.argv
if (len(args) != 3):
print("Usage: ./check-ctrlcode.py <dir> <ext>")
sys.exit(1)
dirpath = args[1]
ext = args[2]
fullpath = os.path.abspath(dirpath)
if (os.path.isdir(fullpath) is not True):
print("Directory not found.")
sys.exit(1)
check_dir(fullpath, ext)