Skip to content

Commit

Permalink
fix ray-tracing for conda site-package, find the right path
Browse files Browse the repository at this point in the history
  • Loading branch information
KafuuChikai committed Dec 20, 2024
1 parent be62afe commit d09345d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion genesis/vis/raytracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
from genesis.engine import entities
from genesis.ext import trimesh

LRP_PATH = os.path.join(miscu.get_src_dir(), "ext/LuisaRender/build/bin")
# try to import LuisaRenderPy from the path specified by the environment variable LRP_PATH
lrp_path_env = os.getenv('LRP_PATH')

if lrp_path_env:
LRP_PATH = lrp_path_env
else:
# the default path
LRP_PATH = os.path.join(miscu.get_src_dir(), "ext/LuisaRender/build/bin")
try:
sys.path.append(LRP_PATH)
import LuisaRenderPy
Expand Down

0 comments on commit d09345d

Please sign in to comment.