Each tortoise client has its own executable named ‘Tortoise.exe’ and I’m looking for a way to differentiate them before using Python’s subprocess.call or C#’s Process class
I’ve been using the subprocess.call() to run certain actions through TortoiseSVN.
Python:
call('TortoiseProc.exe /command:ignore /path:\"%s\" /closeonend:0' % url)
C#:
tortoiseSVN = new Process( );
tortoiseSVN.StartInfo.FileName = "tortoiseProc.exe";
This works fine, unless I have a second (or third) Tortoise client installed like TortoiseGit. My current workaround is to remove non-TortoiseSVN folders from my Windows PATH variable, but I want to find something more elegant.
By way of example for Alexis comment: