I need to run pdb2mdb.exe utility, and pass DLL file as argument.
After long googling, and playing with various call/Popen - I still can't find solution...
Here is last code:
def pdb2mdb(logger, modsrcdll): os.chdir("C:\\Program Files (x86)\\Unity\\Editor\\Data\\MonoBleedingEdge\\lib\\mono\\4.0\\") subprocess.call("pdb2mdb.exe %s" % modsrcdll) But - this way pdb2mdb.exe don't want accept argument, and prints it's help:
Copy file d:\***.dll to C:\cloudlibrary\data Copy file D:\***.dll.xml to C:\cloudlibrary\data PDP FOUND pdbexe found Mono pdb to mdb debug symbol store converter Usage: pdb2mdb assembly Without os.chdir() - it can't parse C:\\Program Files (x86) at all...
I have used subprocess.call() earlier under Linux, and never had such problems, for example:
subprocess.call('ls -l %s | grep -v total' % self.path, shell=True)
". i.e.subprocess.call('pdb2mdb.exe "%s"' % modsrcdll).