Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #2545

Re: string to path problem

References <7f0a2a35-8ae8-4625-9cef-8516b142cd25@f18g2000yqd.googlegroups.com>
Date 2011-04-03 21:17 -0700
Subject Re: string to path problem
From Chris Rebert <clp2@rebertia.com>
Newsgroups comp.lang.python
Message-ID <mailman.179.1301890636.2990.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Apr 3, 2011 at 8:30 PM, ecu_jon <hayesjdno3@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

string to path problem ecu_jon <hayesjdno3@yahoo.com> - 2011-04-03 20:30 -0700
  Re: string to path problem Chris Rebert <clp2@rebertia.com> - 2011-04-03 21:17 -0700
    Re: string to path problem ecu_jon <hayesjdno3@yahoo.com> - 2011-04-03 21:18 -0700
      Re: string to path problem Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2011-04-04 14:36 +0530
        Re: string to path problem ecu_jon <hayesjdno3@yahoo.com> - 2011-04-04 08:21 -0700

csiph-web