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