thibh Posted July 25, 2015 Share Posted July 25, 2015 Hi there =)So I'm trying to run a python script inside Houdini by using hython.I am writing pipeline tools using PyQt and I want to run a python script when the user clicks on a button that will create a HDA. I run into a strange error when trying to use hython. It says "Can't open dophints.cmd". The thing is that it works when I do it on the command line directly but it doesn't work when I execute it inside my script, either with os.system() or subprocess.Popen(). Does anybody have any idea why this happens?Thanks a lot !Thibault. Quote Link to comment Share on other sites More sharing options...
edward Posted July 26, 2015 Share Posted July 26, 2015 Why not just create a shelf tool that directly calls your python script (without the extra hython indirection)? Quote Link to comment Share on other sites More sharing options...
thibh Posted July 26, 2015 Author Share Posted July 26, 2015 The thing is that I want to create a HDA from a PyQt GUI, so I don't want to have to open Houdini, everything should be done from the PyQt GUI.I think I found why I got the error, strangely it only happen inside PyCharm, when I run my python script with the .py file it works perfectly. So this should be an issue with PyCharm's way of dealing with command line stuff. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.