uniicode and executing a process with subprocess.call, or os.system
Rick King
rickbking at comcast.net
Sun Jul 19 15:32:16 EDT 2009
Thanks. I looked around for alternatives but didn't find this one.
Rick
Chris Rebert wrote:
> On Sat, Jul 18, 2009 at 3:30 PM, Rick King<rickbking at comcast.net> wrote:
>
>> Hello,
>> I want to copy files using subprocess.call or os.system where the file names
>> are non-ascii, e.g. Serbian(latin), c's and s's with hacheks,etc. Windows
>> stores all the file names in unicode so they are displayed ok in explorer,
>> and I can read them into my program with listdir(u'.'), etc. and work with
>> the names in the program.
>>
>
> You should try one of the copying functions in the shutil module
> instead, it'll be much simpler than using subprocess:
> http://docs.python.org/library/shutil.html
>
> Cheers,
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090719/cb8e1bb8/attachment-0001.html>
More information about the Python-list
mailing list