Jump to content
ajz

Python's multiprocessing

Recommended Posts

what about using popen?   you could have 2 scripts  one that runs in Houdini and calls the second one,    that way you can tell to open any program on the back, in this case python running what you need and returning it to the first script.

(pseudocode) in the main script:

 

results = []

for I in list:

     bla = popopen("python /path/to/second/script", stdout=pipeline, stderr=pipeline)

    std, sterr = bla.communicate()

    results.append(std)

 

print results

 

 

this will open pythons on the back and return what was printed,   you could also do the second scripts to export the information to txt files and then have a way to read back form that txt

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×