long path udpates

This commit is contained in:
Elghinnarisa
2022-09-09 20:58:30 +02:00
parent 178851776d
commit 8f520bfe05
2 changed files with 4 additions and 21 deletions

View File

@@ -26,36 +26,18 @@ print("printing original: ", originalfiles)
joined = (' '.join(originalfiles))
print("printing joined: ", joined)
re.sub (' +', ' ', joined)
print("duble spaces removed? :", joined)
listed = re.split(r'([A-Z]:.+?)(?=[A-Z]:)', joined)
listed = list(filter(None, listed))
print("printing listed: ", listed)
sym_target = "E:/Projects/python/ffmpeg_collection/temp/test/"
sym_location = os.path.split(listed[0])
print("sym locations: ", sym_location)
#os.symlink(sym_location[0], sym_target ,target_is_directory=True)
#sym_list = []
#for each in listed:
# r = tuple(os.path.split(each))
# name = tuple(r[1])
# print("printing R", r[1])
# path_used = tuple(sym_target)
# print(type(name))
# print(type(path_used))
# join_before = (''.join(path_used + name ))
# sym_list.append(join_before)
# print("printing symlist: ", sym_list)
#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]
#check if output folder exists, otherwise create it
isExist = os.path.exists(output_path+output_folder_name)
@@ -90,7 +72,7 @@ audio_track = "".join(" -map 0:a:{}".format(y) for y in x)
z = (int(z) for z in input ("Enter subtitle tracks to keep: ").split())
subtitle_track = "".join(" -map 0:s:{}".format(y) for y in z)
for file in sym_list:
for file in listed:
basename = os.path.basename(file)