Skip to content

Commit

Permalink
Ensure that the un.rpyc log file location exists
Browse files Browse the repository at this point in the history
  • Loading branch information
CensoredUsername committed Dec 5, 2018
1 parent ddc961c commit 53d6ff1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion un.rpyc/unrpyc-compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def decompile_rpyc(file_obj, abspath, init_offset):
def decompile_game():
import sys

with open(path.join(os.getcwd(), "game/unrpyc.log.txt"), "w") as f:
logfile = path.join(os.getcwd(), "game/unrpyc.log.txt")
ensure_dir(logfile)
with open(logfile, "w") as f:
f.write("Beginning decompiling\n")

for abspath, fn, dir, file in sys.files:
Expand Down

0 comments on commit 53d6ff1

Please sign in to comment.