From 97addada6ee7b00b7dcb4ddc69e0d411306591f9 Mon Sep 17 00:00:00 2001 From: Zdenek Dolezal Date: Thu, 21 Nov 2024 14:33:57 +0100 Subject: [PATCH] chore(init): Mention external bpy in wrong command RuntimeError Otherwise even if your environment is correct and you forget to set the env var, the output is super confusing. --- blenderproc/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blenderproc/__init__.py b/blenderproc/__init__.py index 42cd27e75..26925ece8 100644 --- a/blenderproc/__init__.py +++ b/blenderproc/__init__.py @@ -76,6 +76,6 @@ and not is_correct_startup_command and not is_using_external_bpy_module(): # pylint: disable=consider-using-f-string raise RuntimeError("\n###############\nThis script can only be run by \"blenderproc run\", instead of calling:" - "\n\tpython {}\ncall:\n\tblenderproc run {}\n###############".format(sys.argv[0], - sys.argv[0])) + "\n\tpython {}\ncall:\n\tblenderproc run {}\n\nor consider using 'USE_EXTERNAL_BPY_MODULE=1'" + "\n###############".format(sys.argv[0], sys.argv[0])) # pylint: enable=consider-using-f-string