NEWbie asks "is Python a good tool for automated file/folder generation?"

Chris Barker Chris.Barker at noaa.gov
Tue Jun 18 12:01:42 EDT 2002


Peter Hansen wrote:
> Better to learn to use raw-strings, with an "r" in front,
> as in path = r"c:\this is a safe path" or better yet,
> either forward slashes always: path = "c:/this works too".

Or even better, use os.path.join(), you never know when you will
encounter a Mac. (of course, if it's OSX, the above will work as well)

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer
                                    		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the Python-list mailing list