chore: lint python
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user