Browse Source

Make sure that (DY)LD_LIBRARY_PATH contains bin dir of venv

Such that it can find the copied dynamic libraries

Contributes to CURA-9365
pull/4/head
j.spijker@ultimaker.com 4 years ago committed by Jelle Spijker
parent
commit
168c92416e
No known key found for this signature in database
GPG Key ID: 6662DC033BE6B99A
  1. 2
      generators/VirtualPythonEnv.py

2
generators/VirtualPythonEnv.py

@ -79,6 +79,8 @@ class VirtualPythonEnv(Generator):
env.define_path("VIRTUAL_ENV", venv_folder)
env.prepend_path("PATH", os.path.join(venv_folder, self._venv_path))
env.prepend_path("LD_LIBRARY_PATH", os.path.join(venv_folder, self._venv_path))
env.prepend_path("DYLD_LYBRARY_PATH", os.path.join(venv_folder, self._venv_path))
env.prepend_path("PYTHONPATH", pythonpath)
env.unset("PYTHONHOME")

Loading…
Cancel
Save