I am attempting to run the unity editor in batchmode from a python script in order to import and bundle assets automatically. I am running into a very early problem though. I use the command line to create a temporary project, the arguments are as follows...
['C:\Program Files (x86)\Unity\Editor\Unity.exe', '-quit', '-batchmode', '-nographics', '-createProject c:\build\GAM\Vehicles\Cars\WW\05TennisCLK\SrcAsset\unityBuilder']
It runs for a while and then aborts with the complaint that Multiple Unity Instances can't open the same project. It then identifies an older project with the same name (but different path) as being the root of the issue.
I have verified the following
1) In process explorer throughout the entire scripts execution only 1 unity process is running.
2) The old project has been deleted and no longer exists.
3) I restarted the machine in case unity had a handle to an old file of some sort.
4) I have tried both pre-creating the path for the temporary project, and ensuring that it doesn't exist, I get the same result regardless.
The part of the python script that is running is very simple, it just executes this command line and then exits.
I was wondering had anyone else experienced this message being generated, apparently erroneously and if so how did they resolve it?