chore: lint python
This commit is contained in:
1 parent
c4f1ef26c0
commit
d67f719fe4
1 file changed
+3
@@ -4,6 +4,7 @@ import glob
|
|||||||
import os
|
import os
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
|
|
||||||
|
|
||||||
def mkdir_p(directory_name):
|
def mkdir_p(directory_name):
|
||||||
try:
|
try:
|
||||||
os.makedirs(directory_name)
|
os.makedirs(directory_name)
|
||||||
@@ -11,6 +12,7 @@ def mkdir_p(directory_name):
|
|||||||
if exc.errno == errno.EEXIST and os.path.isdir(directory_name):
|
if exc.errno == errno.EEXIST and os.path.isdir(directory_name):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
root_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')
|
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'))
|
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))
|
mkdir_p(os.path.dirname(new_path))
|
||||||
os.rename(file, new_path)
|
os.rename(file, new_path)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
Reference in new issue
Block a user