From 24b1547f2e9fe43a7bf4063337ed482610ae9616 Mon Sep 17 00:00:00 2001 From: Tichq <57302714+qTich@users.noreply.github.com> Date: Mon, 4 Nov 2024 09:49:42 +0300 Subject: [PATCH] fix: self-builded `web` --- tasks/pythonlib.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/pythonlib.py b/tasks/pythonlib.py index 765806f..3b4332a 100644 --- a/tasks/pythonlib.py +++ b/tasks/pythonlib.py @@ -544,10 +544,10 @@ def python3(c: Context): c.copy("{{ runtime }}/site3.py", "{{ distlib }}/{{ pythonver }}/sitecustomize.py") import socket - if socket.gethostname() == "eileen": - with open(c.path("{{ distlib }}/{{ pythonver }}/sitecustomize.py"), "a") as f: - f.write("\n") - f.write("import site\n") + with open(c.path("{{ distlib }}/{{ pythonver }}/sitecustomize.py"), "a") as f: + f.write("\n") + f.write("import site\n") + if socket.gethostname() == "eileen": f.write("site.renpy_build_official = True\n") c.compile("{{ distlib }}/{{ pythonver }}/sitecustomize.py")