I wanna make a python file to just open the file and the skin automatically gets put into a zip file, opens it... now the problem is when the file is opened, the skin is all messed up. can someone please help me fix my code?
import zipfile
import pathlib
import os
directory_to_zip = "RavenTope HDDT"
zip_path = "RavenTope HDDT.osk"
folder = pathlib.Path(directory_to_zip)
with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zip:
for file in folder.iterdir():
zip.write(file, arcname=file.name)
os.startfile(zip_path)
import zipfile
import pathlib
import os
directory_to_zip = "RavenTope HDDT"
zip_path = "RavenTope HDDT.osk"
folder = pathlib.Path(directory_to_zip)
with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zip:
for file in folder.iterdir():
zip.write(file, arcname=file.name)
os.startfile(zip_path)