Jump to content

Can't open dophints.cmd when using hython.


thibh

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...