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


Groups > comp.lang.python > #93659

Re: [setuptools] install data-file in users home-dir

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <c.buhtz@posteo.jp>
X-Original-To Python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.045
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'subject:: [': 0.03; 'subject:file': 0.07; 'app,': 0.09; 'package).': 0.16; 'subject:home': 0.16; 'subject:install': 0.16; 'unnecessary.': 0.16; 'wrote:': 0.16; 'app': 0.16; 'config': 0.18; 'script.': 0.18; 'runs': 0.18; 'subject:] ': 0.19; 'file.': 0.22; 'header:In- Reply-To:1': 0.24; 'install': 0.25; 'chris': 0.26; "skip:' 10": 0.28; 'itself,': 0.29; 'subject:users': 0.29; 'instead,': 0.33; 'file': 0.34; 'done': 0.35; 'dir': 0.35; 'quite': 0.35; 'should': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'doing': 0.38; 'someone': 0.38; 'files': 0.38; 'data': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'received:de': 0.40; 'from:no real name:2**0': 0.60; 'your': 0.60; 'header:Message- Id:1': 0.61; 'different': 0.63; 'header:Reply-To:1': 0.67; 'reply- to:no real name:2**0': 0.71; 'received:89': 0.80; 'received:89.146': 0.84; 'reply-to:addr:python.org': 0.84; 'received:185': 0.91
Date Sat, 11 Jul 2015 02:01:56 +0200
From <c.buhtz@posteo.jp>
To Python-list@python.org
Subject Re: [setuptools] install data-file in users home-dir
In-Reply-To <CAMw+j7+hUvj0-T4AoqG4X2RB6XUP4U0Unf=q2M8wT1_BEWKiZA@mail.gmail.com>
References <3mSGXb0tfQzFpW3@dovecot04.posteo.de> <CAMw+j7+hUvj0-T4AoqG4X2RB6XUP4U0Unf=q2M8wT1_BEWKiZA@mail.gmail.com>
Reply-To Python-list@python.org
X-Mailer Claws Mail 3.9.3 (GTK+ 2.24.23; i686-pc-linux-gnu)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.407.1436572924.3674.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1436572924 news.xs4all.nl 2852 [2001:888:2000:d::a6]:52757
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:93659

Show key headers only | View raw


On 2015-07-10 09:39 Chris Warrick <kwpolska@gmail.com> wrote:
> And you should not create the files in your install script.  Instead,
> install them to a different data dir (somewhere in 'share/appname', or
> alongside your package). When someone runs your app, only then you
> should copy this file to user’s config directory

I have to check if there still is a user config file.
When doing this with the app itself, the check would be done while each
start - what is quite unnecessary.

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


Thread

Re: [setuptools] install data-file in users home-dir <c.buhtz@posteo.jp> - 2015-07-11 02:01 +0200

csiph-web