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


Groups > comp.lang.python > #57752

Re: How to find where data files are installed for my Python program

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'differently': 0.07; 'subject:files': 0.09; 'subject:How': 0.10; 'python': 0.11; 'conforming': 0.16; 'filesystem': 0.16; 'finney': 0.16; 'hierarchy': 0.16; 'scripts.': 0.16; 'subject:program': 0.16; 'subject:where': 0.16; 'wrote:': 0.18; 'separate': 0.22; 'shell': 0.22; "shouldn't": 0.24; 'purposes': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'subject:data': 0.36; 'url:org': 0.36; 'should': 0.36; 'ben': 0.38; 'e.g.': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'url:3': 0.61; 'subject:find': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=0KR9jqejVbmP2stTkZ9k6tWTQw4CDWJYRojlMIQJBEE=; b=HK5UCOIiGYiOAY0F3/vtzrVU3EBK5f97m6v1JkmAvHWX82p0Tnmcm+xwtwpI+pENFK KIyLbpDSFHoOhMIjVtLHlJNA4AvSGj6DXMiC0Hilyuz2ZrRjvfOcFlo6qCN49XdbLZ8M YQFkriShyQB5IiOYgg6/2rDbml1tOhcRl+lXTj8QNLYsKL4ERMzbf51ayVu4P3Zxj+J0 ocX9UpQIc3l+9uaZDe2WtkNIjtSl36D9hepnp9K0IOX7MsN9ZgLAwb9dIFkK+7+pAcTz zkCnzbyyWKNvFHiQhEPk8v6R2TelyZJb/K3mvyZeZjcXGEIgJb0pdc8/VXiuDGKeQbCn LyIw==
X-Received by 10.66.66.42 with SMTP id c10mr20739735pat.98.1382889064447; Sun, 27 Oct 2013 08:51:04 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <bd3ve5F6cjjU1@mid.individual.net>
References <00704f33-7e7f-4ccf-b28b-69776d2e237d@googlegroups.com> <526C7FEF.7020206@islandtraining.com> <CAPTjJmqVz8PidbbjXbSn=6M42m=LZg3JBh1mKQr7-FuiqzbOUQ@mail.gmail.com> <mailman.1637.1382848122.18130.python-list@python.org> <bd3ve5F6cjjU1@mid.individual.net>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Sun, 27 Oct 2013 09:50:24 -0600
Subject Re: How to find where data files are installed for my Python program
To Python <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.1654.1382890961.18130.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1382890961 news.xs4all.nl 15939 [2001:888:2000:d::a6]:46106
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:57752

Show key headers only | View raw


On Sun, Oct 27, 2013 at 1:58 AM, Gregory Ewing
<greg.ewing@canterbury.ac.nz> wrote:
> Ben Finney wrote:
>>
>> On systems conforming to the Filesystem Hierarchy Standard, it's
>> forbidden: programs go in a platform-specific location
>>
>> <URL:http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA>,
>> while platform-independent data files go in a separate location
>>
>> <URL:http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html#USRSHAREARCHITECTUREINDEPENDENTDATA>.
>
>
> But Python code itself is platform-independent, so it
> should count as data for the purposes of the FHS,
> shouldn't it?

I don't see why Python files should be treated any differently than
other non-binary executables, e.g. shell scripts.

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


Thread

Function for the path of the script? Peter Cacioppi <peter.cacioppi@gmail.com> - 2013-10-26 19:23 -0700
  Re: Function for the path of the script? Skip Montanaro <skip.montanaro@gmail.com> - 2013-10-26 21:42 -0500
  Re: Function for the path of the script? Gary Herron <gary.herron@islandtraining.com> - 2013-10-26 19:52 -0700
  Re: Function for the path of the script? Chris Angelico <rosuav@gmail.com> - 2013-10-27 14:01 +1100
    Re: Function for the path of the script? Grant Edwards <invalid@invalid.invalid> - 2013-10-28 14:49 +0000
      Re: Function for the path of the script? Chris Angelico <rosuav@gmail.com> - 2013-10-29 01:59 +1100
      Re: Function for the path of the script? rurpy@yahoo.com - 2013-10-28 21:00 -0700
        Re: Function for the path of the script? Steven D'Aprano <steve@pearwood.info> - 2013-10-29 05:27 +0000
          Re: Function for the path of the script? Grant Edwards <invalid@invalid.invalid> - 2013-10-29 14:31 +0000
  Re: Function for the path of the script? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-27 03:42 +0000
  Re: Function for the path of the script? Ben Finney <ben+python@benfinney.id.au> - 2013-10-27 15:10 +1100
    Re: Function for the path of the script? Roy Smith <roy@panix.com> - 2013-10-27 09:38 -0400
    Re: Function for the path of the script? Grant Edwards <invalid@invalid.invalid> - 2013-10-28 14:58 +0000
      Re: Function for the path of the script? Ben Finney <ben+python@benfinney.id.au> - 2013-10-29 09:50 +1100
        Re: Function for the path of the script? Grant Edwards <invalid@invalid.invalid> - 2013-10-29 14:26 +0000
  How to find where data files are installed for my Python program (was: Function for the path of the script?) Ben Finney <ben+python@benfinney.id.au> - 2013-10-27 15:28 +1100
    Re: How to find where data files are installed for my Python program (was: Function for the path of the script?) rurpy@yahoo.com - 2013-10-26 22:18 -0700
    Re: How to find where data files are installed for my Python program Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-10-27 20:58 +1300
      Re: How to find where data files are installed for my Python program Ian Kelly <ian.g.kelly@gmail.com> - 2013-10-27 09:50 -0600
      Re: How to find where data files are installed for my Python program Ben Finney <ben+python@benfinney.id.au> - 2013-10-28 10:13 +1100
      Re: How to find where data files are installed for my Python program Ben Finney <ben+python@benfinney.id.au> - 2013-10-28 10:31 +1100
      Re: How to find where data files are installed for my Python program Chris Angelico <rosuav@gmail.com> - 2013-10-28 10:58 +1100
      Re: How to find where data files are installed for my Python program Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-28 00:34 +0000
      Re: How to find where data files are installed for my Python program Chris Angelico <rosuav@gmail.com> - 2013-10-28 17:51 +1100
        Re: How to find where data files are installed for my Python program Roy Smith <roy@panix.com> - 2013-10-28 08:51 -0400
          Re: How to find where data files are installed for my Python program Chris Angelico <rosuav@gmail.com> - 2013-10-29 00:06 +1100
  Re: How to find where data files are installed for my Python program (was: Function for the path of the script?) Chris Angelico <rosuav@gmail.com> - 2013-10-27 16:49 +1100
  Re: Function for the path of the script? Peter Cacioppi <peter.cacioppi@gmail.com> - 2013-10-28 15:57 -0700
  Re: Function for the path of the script? Peter Cacioppi <peter.cacioppi@gmail.com> - 2013-10-28 22:56 -0700

csiph-web