RenPy-Unpacker: Ignore itself

This commit is contained in:
OleSTEEP 2023-07-06 14:40:31 +03:00
parent b2335509e3
commit 39aa70c538

View file

@ -2,7 +2,7 @@ init 4 python:
import os import os
for asset in renpy.list_files(): for asset in renpy.list_files():
if os.path.splitext(asset)[1] != ".rpa": if os.path.splitext(asset)[1] != ".rpa" and asset != "unpack.rpyc":
output = "unpack/game/" + asset output = "unpack/game/" + asset
if not os.path.exists(os.path.dirname(output)): if not os.path.exists(os.path.dirname(output)):
os.makedirs(os.path.dirname(output)) os.makedirs(os.path.dirname(output))