[python-win32] win32com can't find file but I can see it, confused

2012-03-09 Thread dave selby
OK I am a little confused, I have the following shell = win32com.client.Dispatch('WScript.Shell') print os.path.isfile(self.exe) print self.exe shell.Run(self.exe) The file self.exe exists, I get a 'true' from os.path.isfile, I can execute it on the command line AOK, its path is as I would

Re: [python-win32] win32com can't find file but I can see it, confused

2012-03-09 Thread Randy Syring
Do you need to quote the value sent to shell.run() since there is a space in it? shell.Run('C:\Documents and Settings\dave\Desktop\MyMobile\MyMobiler\MyMobiler.exe') ? - Randy Syring Development Executive Director Level 12 Technologies

Re: [python-win32] win32com can't find file but I can see it, confused

2012-03-09 Thread Tim Roberts
Randy Syring wrote: Do you need to quote the value sent to shell.run() since there is a space in it? shell.Run('C:\Documents and Settings\dave\Desktop\MyMobile\MyMobiler\MyMobiler.exe') Right. More than that, he needs to escape the backslashes or use a raw string, as in: