generated from brennen/python_project
remove superfluous string conversion
This commit is contained in:
@@ -24,9 +24,9 @@ def main(music_folder: Path):
|
|||||||
with m3u.open("w") as updated_contents:
|
with m3u.open("w") as updated_contents:
|
||||||
for track in tracks:
|
for track in tracks:
|
||||||
if track.is_absolute():
|
if track.is_absolute():
|
||||||
updated_contents.write(str(track.relative_to(m3u, walk_up=True).as_posix()))
|
updated_contents.write(track.relative_to(m3u, walk_up=True).as_posix())
|
||||||
else:
|
else:
|
||||||
updated_contents.write(str(track.as_posix()))
|
updated_contents.write(track.as_posix())
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user