setting up custum libraries with packages stuck

   691   2   0
User Avatar
Member
193 posts
Joined: 12月 2016
Offline
Hello,

I'm having some problems setting up costum libraries.
Just trying to set up a python rc on its own doesn’t seem to be working.
Any help is greatly appreciated.

I have this in my package's dir at.
/home/nanghe/houdini19.5/packages

Journey.json
{
    "path": "/home/nanghe/CGI/frameworks/journey/houdini",
    "package_path": "/home/nanghe/CGI/frameworks/journey/houdini/packages",
    "enable": true
}

And I have this here.

/home/nanghe/CGI/frameworks/journey/houdini/python3.9libs/pythonrc.py
# import hou
import hou


message = "Py RC is loaded" 
details = "initial testing"
print(message)
print(details)
# if hou.isUIAvailable():
#     hou.ui.displayMessage(message, details=details)

nothing is printed on startup.
Edited by NicTanghe - 2023年9月14日 17:57:48
User Avatar
スタッフ
398 posts
Joined: 2月 2018
Offline
The package_path keyword is used for loading extra packages located in a custom folder. It's not meant for processing python modules and whatnot. Python modules are processed after packages.
Edited by mabelzile - 2023年9月18日 11:13:05
User Avatar
Member
193 posts
Joined: 12月 2016
Offline
Ok,
The package path is empty, though.

python rc is at
/home/nanghe/CGI/frameworks/journey/houdini/python3.9libs/pythonrc.py
  • Quick Links