On Mon, Oct 12, 2009 at 2:42 PM, William Stein <wst...@gmail.com> wrote: > name using "os.path.join", which doesn't put a trailing slash in. One > should write code using os.path.join too, which means you shouldn't > depend on a slash being forward -- it might be backwards (on windows > it is).
Note that dos and windows accept both forward and backward slashes as path separators. It's just the command line which usually overrides forward slashes to be command options. Try dir "C:/WINDOWS" (with the quotes) Just 2 pennies worth of trivia... using os.path.sep sounds like the right think to do anyway... Gonzalo PS: the separator for MacOS < 10, though, was just ":" IIRC, but I don't think it's relevant anymore. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---