From f9da8623754cdbd12ba6d7958923b80469f3896a Mon Sep 17 00:00:00 2001 From: pmp-p Date: Wed, 11 Oct 2023 14:51:54 +0200 Subject: [PATCH] 0.8.3 --- pygbag/support/pythonrc.py | 2 ++ pygbag/testserver.py | 9 +++++---- static/default.tmpl | 4 ++-- static/noctx.tmpl | 4 ++-- static/pythons.js | 15 ++++++++++----- 5 files changed, 21 insertions(+), 13 deletions(-) diff --git a/pygbag/support/pythonrc.py b/pygbag/support/pythonrc.py index 2f7eb6d..457d16f 100644 --- a/pygbag/support/pythonrc.py +++ b/pygbag/support/pythonrc.py @@ -1658,6 +1658,8 @@ def patch_panda3d_showbase(): panda3d.core.loadPrcFileData("", "support-threads #f") panda3d.core.loadPrcFileData("", "textures-power-2 down") panda3d.core.loadPrcFileData("", "textures-square down") + # samples expect that + panda3d.core.loadPrcFileData("", "default-model-extension .egg") def run(*argv, **env): print("ShowBase.run patched to launch asyncio.run(main())") diff --git a/pygbag/testserver.py b/pygbag/testserver.py index 4e93f67..c95f0f2 100644 --- a/pygbag/testserver.py +++ b/pygbag/testserver.py @@ -35,10 +35,11 @@ CACHE = None -try: - from future_fstrings import fstring_decode -except: - fstring_decode = False +# does not support {x=} +#try: +# from future_fstrings import fstring_decode +#except: +fstring_decode = False try: diff --git a/static/default.tmpl b/static/default.tmpl index dd205af..04f88de 100644 --- a/static/default.tmpl +++ b/static/default.tmpl @@ -1,9 +1,9 @@ -