Jump to content

Setting python include path to external pyd library


GeordieM

Recommended Posts

Hi all, I know python but am just starting out uncovering how to get things really working.

 

I have a .pyd file which I need to reference in a script but it cannot be moved into any Houdini folders, it has a lot of dependencies to relative paths in it's folder (a whole game engine).

 

I'm running Win 7 so I'm relying on Houdini's Python not the system install.

 

Where/how do I set an include path to external Python libraries in Houdini's Python?

 

Thanks!

 

Geordie

Link to comment
Share on other sites

  • 2 years later...

It's an old thread but replying here because I don't think the documentation is very clear on this so it took me a while to refresh myself on how to do this. There are a few options, such as setting in your pythonrc.py, but I find it easiest to add the following to my 123.py and 456.py files since I already set the JOB variable there:

import sys
sys.path.append("your_path")

 

  • Thanks 2
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...