Hi,
First post here…greetings all
I have python script that runs an external exe to convert textures to ACES.
The problem is that when I have run trough the script and assigned the new texture-path to a filenode back in Maya then the file is locked by Maya and if I want to delete it then I get an error message that the file can’t be deleted because it is open in Maya…even if I re-assign another texture to the file-node Maya wont release it…I have to quit Maya to be able to delete it…
I’m using subprocess.check_output() and I have tried wrapping it in execv() as well to be able to use the kill(), but no luck so far…
…any thougts?
Basic version:
subprocess.check_output(’%s %s’ % (commandSetup, argumentList), shell=True)
Wrapped version:
processRunning = os.execv(‘cmd’, subprocess.check_output(’%s %s’ % (commandSetup, argumentList), shell=True))
processRunning.kill()
Greatful for any ideas,
//Johan