string to path problem

Chris Rebert clp2 at rebertia.com
Mon Apr 4 06:17:13 CEST 2011


On Sun, Apr 3, 2011 at 8:30 PM, ecu_jon <hayesjdno3 at yahoo.com> wrote:
> i am writing a basic backup program for my school. so they wanted the
> possibility to be able to set source/destination from a config file.
> my source/destination was fine before, i would build it up with
> functions, like 1 that got the user-name, and put it all together with
> os.path.join. but if they set a source in the config file to something
> like c:\users\jon\backup  python tries to read from c:\\users\\jon\
> \backup, and throws out a read permission (because it doesn't
> exist ...).

Please give the exact error message and full exception traceback that
you're getting.

Cheers,
Chris



More information about the Python-list mailing list