import os import uuid str = """ """ for lib in os.listdir("./libraries"): str += f"\t\n" str += """ """ i = 0 for lib in os.listdir("./libraries"): for file in os.listdir(f"./libraries/{lib}"): str += fr""" """ i += 1 str += """ """ print(str) new_file = open("wix/libraries.wxs", mode="w") new_file.write(str) new_file.close()