Mise à jour de 'run.py'

This commit is contained in:
Guillaume RYCKELYNCK 2023-03-13 07:10:03 +00:00
parent 32d682383b
commit 2343f3739e

4
run.py
View File

@ -247,8 +247,8 @@ def main(argv):
print('No XML file in command line')
sys.exit()
if len(argv) == 1 and os.path.isdir(argv):
files = glob.glob(argv + '/**/*.xml', recursive=True)
if len(argv) == 1 and os.path.isdir(argv[0]):
files = glob.glob(argv[0] + '/**/*.xml', recursive=True)
else:
files = argv