Re: Direct interaction with subprocess - the curse of blocking I/O

2009-07-01 Thread spillz
On Jun 29, 3:15 pm, Pascal Chambon wrote: > Hello everyone > > I've had real issues with subprocesses recently : from a python script, > on windows, I wanted to "give control" to a command line utility, i.e > forward user in put to it and display its output on console. It seems > simple, but I ran

Re: Problem with case insensitive volumes

2009-05-06 Thread spillz
On May 5, 10:24 pm, "Gabriel Genellina" wrote: > I use this function on Windows to obtain the true case name of a file: very nice. I think the python bindings to the gnome GIO library *might* provide what I need on the linux side. -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with case insensitive volumes

2009-05-05 Thread spillz
On May 5, 10:02 am, Scott David Daniels wrote: > What is so tough about something like: > > base, dirs, files = next(os.walk(dirn))  # older: os.walk(dirn).next() > current = dict((name.upper() for name in dirs + files) > ... > changed = some_name == current[some_name.upper()] > ... not so fast.

Re: Problem with case insensitive volumes

2009-05-05 Thread spillz
> os;walk will tell you the correct case for each node.   So if it gives > you a different case than the stored form, you have your answer. Thanks, although I was hoping that wouldn't be the answer (I have to compare a LOT of files). -- http://mail.python.org/mailman/listinfo/python-list