Setting up Python packages. What location should I be in? [macbook]

   1246   2   0
User Avatar
Member
2 posts
Joined: April 2017
Offline
I've been searching for a couple hours and nothing seems to work.

I'd like to create a python package that will have multiple python files.

./houdini_instancer/
|__init__.py
|importer.py
|exporter.py
|builder.py
|main.py


and call upon it inside the python shell or custom button using

>>>from houdini_instancer import main
>>>main.runExport('path/to/export', args, and, more, args)

for the life of me I can't seem to find the path houdini is looking for. I'm in OSX on a macbook.

side note: $HOUDINI_PATH is empty and, if I change it, it breaks the license server…. (just in case someone wanted to suggest altering this var)
User Avatar
Member
2 posts
Joined: April 2017
Offline
I'm an idiot.

https://www.youtube.com/watch?v=xoVORgBT190 [www.youtube.com]

this explains it.

/Users/$USER/Library/Preferences/houdini/16.0/python2.7libs/
User Avatar
Member
171 posts
Joined: Oct. 2016
Offline
You are clever - you've found answer.
  • Quick Links