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


Groups > comp.lang.python > #2545

Re: string to path problem

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.025
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'subject:string': 0.09; 'sun,': 0.09; 'pm,': 0.11; 'exception': 0.12; 'wrote:': 0.14; 'getting.': 0.16; 'throws': 0.16; 'permission': 0.16; 'traceback': 0.16; 'tries': 0.16; 'fine': 0.18; 'functions,': 0.19; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'cheers,': 0.20; 'header:In- Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'subject:problem': 0.25; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; "doesn't": 0.28; 'error': 0.29; 'cc:addr:python.org': 0.31; 'source': 0.32; 'file.': 0.34; 'got': 0.34; 'file': 0.35; 'put': 0.35; 'possibility': 0.36; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'set': 0.39; 'received:209': 0.39; 'basic': 0.40; 'would': 0.40; 'header:Received:5': 0.40; 'exact': 0.60; 'give': 0.61; '2011': 0.62; 'full': 0.62; 'to:addr:yahoo.com': 0.83; 'received:209.85.210.174': 0.84; 'received:mail- iy0-f174.google.com': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=AJOio1O01BZgGNBJtKLBb4B4eZJ6nLOSP4+HOUDW1ZI=; b=Vs2uI32OhgEK/3oDx89ayQt+JT0kFVinJLbhi8yl1mu4Ra7QyLxJ58liSfptPrurEL rrMOyif+rAUWvGXDwOwKu+E2UzY0ta1mB0JLaWMCaJtBpCy7KDj3/sTOUPbYUmSLC1yD ixpMTlfPjmhYcC6NFCva/LebQTV7X0N9le2Ag=
DomainKey-Signature a=rsa-sha1; c=nofws; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=bdj1bfZHLcY9Es1Fu5sxNd9NoL6hlfJj4EtrD3RVaS4BXGpTfISRavodSNNhSUUxX2 6gKBbvNtcbc4KqJVSZgfOXo+74qkDSqeURBAFOLgPZ6m91zBWzQosG8VotpnGUfMx62g lXydq9O0A4V6pYDJw0R0FwyqiBaiWmsF393cc=
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <7f0a2a35-8ae8-4625-9cef-8516b142cd25@f18g2000yqd.googlegroups.com>
References <7f0a2a35-8ae8-4625-9cef-8516b142cd25@f18g2000yqd.googlegroups.com>
Date Sun, 3 Apr 2011 21:17:13 -0700
X-Google-Sender-Auth eScDFmOqABWkpW3OdBT58ohsL5g
Subject Re: string to path problem
From Chris Rebert <clp2@rebertia.com>
To ecu_jon <hayesjdno3@yahoo.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.179.1301890636.2990.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 82.94.164.166
X-Trace 1301890636 news.xs4all.nl 81481 [::ffff:82.94.164.166]:35560
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:2545

Show key headers only | 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