Python processor external script can't import pdgcmd/pdgjson

   1266   1   0
User Avatar
Member
104 posts
Joined: Nov. 2007
Offline
I'm trying to write a python processor top to run txmake on some input images as a bit of an exercise. I am following the docs: https://www.sidefx.com/docs/houdini/tops/stocknodes.html#generate [www.sidefx.com] and have managed to get the processor to generate some work items so that bit is working. I created an external python script to run the actual command as recommended but it is unable to import either pdgcmd or pdgjson. I'm not sure how to achieve that part and it's not entirely clear from the docs. I added $HHP/pdgjob/pdgcmd.py and $HHP/pdgjob/pdgjson.py in the files sections of the python processor top but this doesn't seem to do anything. What environment is the external script running in at the point of execution? Do I need an env var pointing at those modules or something?
User Avatar
Staff
585 posts
Joined: May 2014
Offline
Can you post the Python Processor code you're using, or possibly the whole .hip file?

Both pdgcmd and pdgjson should be available on the python path for all work items, since they're copied to $PDGTEMP/scripts.
  • Quick Links