Thank you!
I used get_python_lib() for directory in data_files, and it seem to have worked.
Thanks for your assistance!
-Original Message-
From: dieter
Sent: Wednesday, March 6, 2019 12:15 PM
To: python-list@python.org
Subject: Re: "How to package additional files under site-packages "
On 2019-03-07 17:19, tony wrote:
> Python 3.5.3 (default, Sep 27 2018, 17:25:39)
> >>> "a\\nb".decode("string-escape")
> Traceback (most recent call last):
> File "", line 1, in
> AttributeError: 'str' object has no attribute 'decode'
Looks like bytestring.decode('unicode_escape') does what y
On Thursday, March 7, 2019 at 10:38:03 AM UTC-6, jim.wo...@gmail.com wrote:
> On Saturday, October 1, 2016 at 9:57:24 AM UTC-5, Thorsten Kampe wrote:
> > Hi,
> >
> > ConfigParser escapes `\n` in ini values as `\\n`. Is there a way to
> > signal to ConfigParser that there is a line break?
> >
> >
On Saturday, October 1, 2016 at 9:57:24 AM UTC-5, Thorsten Kampe wrote:
> Hi,
>
> ConfigParser escapes `\n` in ini values as `\\n`. Is there a way to
> signal to ConfigParser that there is a line break?
>
> Thorsten
And now we know!
I think they should have named Python 3 something else
--
htt
On 07/03/2019 16:58, jim.womeld...@gmail.com wrote:
> On Thursday, March 7, 2019 at 8:55:31 AM UTC-6, tony wrote:
>> On 07/03/2019 14:16, jim.womeld...@gmail.com wrote:
>>> On Saturday, October 1, 2016 at 7:41:40 PM UTC-5, Ned Batchelder wrote:
On Saturday, October 1, 2016 at 6:25:16 PM UTC-4,
tony wrote:
>> On Saturday, October 1, 2016 at 7:41:40 PM UTC-5, Ned Batchelder wrote:
>>> If you want to have \n mean a newline in your config file, you can
>>> do the conversion after you read the value:
>>>
>>> >>> "a\\nb".decode("string-escape")
>>> 'a\nb'
> How does that translate t
On Thursday, March 7, 2019 at 8:55:31 AM UTC-6, tony wrote:
> On 07/03/2019 14:16, jim.womeld...@gmail.com wrote:
> > On Saturday, October 1, 2016 at 7:41:40 PM UTC-5, Ned Batchelder wrote:
> >> On Saturday, October 1, 2016 at 6:25:16 PM UTC-4, Thorsten Kampe wrote:
> >>> * Ben Finney (Sun, 02 Oct
On 07/03/2019 14:16, jim.womeld...@gmail.com wrote:
> On Saturday, October 1, 2016 at 7:41:40 PM UTC-5, Ned Batchelder wrote:
>> On Saturday, October 1, 2016 at 6:25:16 PM UTC-4, Thorsten Kampe wrote:
>>> * Ben Finney (Sun, 02 Oct 2016 07:12:46 +1100)
Thorsten Kampe writes:
> Co
On Saturday, October 1, 2016 at 7:41:40 PM UTC-5, Ned Batchelder wrote:
> On Saturday, October 1, 2016 at 6:25:16 PM UTC-4, Thorsten Kampe wrote:
> > * Ben Finney (Sun, 02 Oct 2016 07:12:46 +1100)
> > >
> > > Thorsten Kampe writes:
> > >
> > > > ConfigParser escapes `\n` in ini values as `\\n`.