Hi,<br><br>I have some problem with my actual code.<br>In fact, the script is done to work within nuke from the foundry which is a compositing software.<br>Homever, I have some code difficulties as I quite new in the area.<br>

<br>Here the deal:<br>Im using subprocess command to copy some files into local directory, like this:<br><br>    cmd = ['xcopy', '/E', '/I', '/Q', '/Y', '%s' % _folder.replace('/', '\\'), '%s' % _temp.replace('/', '\\')]<br>

    subprocess.Popen(cmd, shell=True)<br><br>Its copying quite well. I have no problem with that. But, after the copy I would like to continue my code, but ONLY if the copy is done.<br>If Im using a WAIT, its freezing the main program (nuke) until the copy in done. I want to avoid that. I also try "call" but same thing. Its freezing...<br>

I though about something like:  <br><br>while subprocess not finished:<br>   Do nothing<br>else:<br>   Continue Program<br><br>Like this its checking if the files is copying and do nothing until its done. I also tough:<br>

<br>while os.listdir(src) != os.listdir(dst):<br> Do nothing<br>Else:<br> Continue program<br><br>But Im not sure its quite good solution. <br>Someone can help me with this one please ?<br><br>Thank you ! :)<br><br><br><br>

<br>