This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients jfdp, lemburg, ocean-city
Date 2008-09-02.10:15:42
SpamBayes Score 8.2595807e-07
Marked as misclassified No
Message-id <1220350545.93.0.389152250151.issue3719@psf.upfronthosting.co.za>
In-reply-to
Content
Can you try this patch?

1. used "file -b" option to eliminate file path. Otherwide, re.split
won't work because file path will contain space like this. (I hope -b
option can be used anywhere "file" command exists)

a b/python.exe: MS-DOS executable PE  for MS Windows (console) Intel
80386 32-bit

2. used subprocess module instead of popen. subprocess is useful when
argument contains space or quote like this issue.
History
Date User Action Args
2008-09-02 10:15:46ocean-citysetrecipients: + ocean-city, lemburg, jfdp
2008-09-02 10:15:45ocean-citysetmessageid: <1220350545.93.0.389152250151.issue3719@psf.upfronthosting.co.za>
2008-09-02 10:15:44ocean-citylinkissue3719 messages
2008-09-02 10:15:44ocean-citycreate