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: 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: To: Python-list@python.org Subject: Re: [setuptools] install data-file in users home-dir In-Reply-To: References: <3mSGXb0tfQzFpW3@dovecot04.posteo.de> 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On 2015-07-10 09:39 Chris Warrick 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=E2=80=99s 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.