This commit is contained in:
Elghinnarisa
2022-09-09 20:18:34 +02:00
parent 19ad920d93
commit d4d12e2d41
12 changed files with 54 additions and 30 deletions

View File

@@ -16,7 +16,10 @@ print(droppedName)
#get path of script location and remove the tail
head_tail = os.path.split(sys.argv[0])
output_path = head_tail[0]
del sys.argv[0]
#skip first part of sys.argv since it points to script location
arguments = sys.argv[1:]
#check if output folder exists, otherwise create it
isExist = os.path.exists(output_path+output_folder_name)
@@ -24,7 +27,7 @@ if not isExist:
os.makedirs(output_path+output_folder_name)
for file in sys.argv:
for file in arguments:
basename = os.path.basename(file)
print(file)