chore: lint python

This commit is contained in:
Jose Diaz-Gonzalez
2019-01-05 19:46:08 -05:00
parent c4f1ef26c0
commit d67f719fe4

View File

@@ -4,6 +4,7 @@ import glob
import os
import xml.etree.ElementTree as ET
def mkdir_p(directory_name):
try:
os.makedirs(directory_name)
@@ -11,6 +12,7 @@ def mkdir_p(directory_name):
if exc.errno == errno.EEXIST and os.path.isdir(directory_name):
pass
def main():
root_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')
test_results_path = os.path.realpath(os.path.join(root_path, 'test-results'))
@@ -27,5 +29,6 @@ def main():
mkdir_p(os.path.dirname(new_path))
os.rename(file, new_path)
if __name__ == "__main__":
main()