Skip to content

Commit

Permalink
chore(init): Mention external bpy in wrong command RuntimeError
Browse files Browse the repository at this point in the history
Otherwise even if your environment is correct and
you forget to set the env var, the output is super confusing.
  • Loading branch information
Griperis committed Dec 3, 2024
1 parent 7725323 commit 97addad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blenderproc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 97addad

Please sign in to comment.