Re: doing cross platform file work

2011-06-23 Thread Ryan Kelly
On Wed, 2011-06-22 at 10:44 -0700, Tim Hanson wrote: > Thanks for your responses to my student question about using OS paths in > Python. > > For the more general case, I am a Linux user interested in making my scripts > platform neutral, which would include Linux, Unix (including Mac), and > W

Re: doing cross platform file work

2011-06-23 Thread Rhodri James
On Thu, 23 Jun 2011 08:13:18 +0100, Gurpreet Singh wrote: ...Cygwin spam. Twice. Please don't mail to both comp.lang.python and python-list. They are gatewayed to each other, so we see your messages twice, which makes us roughly half as likely to respond to them. -- Rhodri James *-* W

Re: doing cross platform file work

2011-06-23 Thread Gurpreet Singh
File system paths are a thing you need to take care moving from one OS to other. Perhaps simplest way to avoid this in windows is install cygwin and enjoy. Keep your accessible files in directories /var or /home which are common (but not in something like /cygdrive/c - Cygwin equilvalent of C:) -

Re: doing cross platform file work

2011-06-22 Thread John Gordon
In Tim Hanson writes: > For the more general case, I am a Linux user interested in making my scripts > platform neutral, which would include Linux, Unix (including Mac), and > Windows. I have looked at the python.org os segment and didn't get an answer. > Is there a library (bonus would be

doing cross platform file work

2011-06-22 Thread Tim Hanson
Thanks for your responses to my student question about using OS paths in Python. For the more general case, I am a Linux user interested in making my scripts platform neutral, which would include Linux, Unix (including Mac), and Windows. I have looked at the python.org os segment and didn't ge