Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'scripts': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'impacts': 0.07; 'executable': 0.09; 'hierarchical': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'scripts,': 0.09; 'skip:/ 10': 0.09; 'subject:files': 0.09; 'tismer': 0.09; 'subject:How': 0.10; 'python': 0.11; 'thread': 0.14; 'windows': 0.15; 'binary,': 0.16; 'filesystem': 0.16; 'finney': 0.16; 'gpl,': 0.16; 'happily': 0.16; 'inclined': 0.16; 'interpreter,': 0.16; 'jumped': 0.16; 'libraries.': 0.16; 'magic': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'segment': 0.16; 'struck': 0.16; 'subject:program': 0.16; 'subject:where': 0.16; 'unix,': 0.16; 'files.': 0.16; 'prevent': 0.16; 'skip:# 20': 0.16; 'language': 0.16; 'wrote:': 0.18; 'discussion': 0.18; 'library': 0.18; 'obviously': 0.18; 'bit': 0.19; '(where': 0.19; 'drawing': 0.19; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'instance,': 0.24; 'fairly': 0.24; 'mon,': 0.24; "haven't": 0.24; 'source': 0.25; 'compiled': 0.26; 'second': 0.26; 'skip:" 20': 0.27; 'values': 0.27; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'unix': 0.29; '(like': 0.30; "i'm": 0.30; 'code': 0.31; 'too.': 0.31; 'another': 0.32; 'text': 0.33; 'skip:# 10': 0.33; 'screen': 0.34; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'subject:data': 0.36; 'operating': 0.37; 'christian': 0.38; 'ben': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'skip:- 10': 0.38; 'does': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'how': 0.40; 'even': 0.60; 'above,': 0.60; 'world.': 0.61; 'such': 0.63; 'more': 0.64; 'levels': 0.65; 'charset:windows-1252': 0.65; 'between': 0.67; 'covers': 0.68; 'limit': 0.70; 'respect': 0.70; 'legal': 0.71; 'attention': 0.75; 'distinguish': 0.84; 'received:2': 0.84; 'subject:find': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: How to find where data files are installed for my Python program Date: Mon, 28 Oct 2013 00:34:21 +0000 References: <00704f33-7e7f-4ccf-b28b-69776d2e237d@googlegroups.com> <526C7FEF.7020206@islandtraining.com> <7w7gcy9tpk.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-2-98-201-160.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 59 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382920476 news.xs4all.nl 15934 [2001:888:2000:d::a6]:39146 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57777 On 27/10/2013 23:58, Chris Angelico wrote: > On Mon, Oct 28, 2013 at 10:31 AM, Ben Finney wrote: >> It is an unfortunate artefact of Unix history that “binary” has an >> established connotation of “executable”, encompassing even executable >> text files. > > That's a lot broader than Unix - people talk about "binaries" meaning > executables in Windows and OS/2 too. Unix is, if anything, _less_ > inclined that way - the executable segment is called "text", which > always struck me as a bit odd. > >> So the separation I'm drawing attention to in the FHS has nothing to do >> with whether the files are text files, and everything to do with whether >> they're executable programs and code libraries. > > Yup. Unix does a fairly good job of blurring the line between > "executables that can be loaded and jumped to" and "scripts that get > loaded by an interpreter". I actually have a few scripts that take > several levels of interpreter, something like: > > foo.pike > #!/usr/local/bin/pike > > bar.pike: > #!/.../foo.pike --parameter > > fum.pike: > #!/.../bar.pike --otherparameter > > Unix will happily execute ./fum.pike as "/usr/local/bin/pike > /.../foo.pike --parameter /.../bar.pike --otherparameter ./fum.pike". > There's a limit on the number of interpreters (to prevent loops), but > I haven't hit it :) > > There is one important place, though, where scripts are called data > files, and that's licensing. The GPL, for instance, does NOT cover > your scripts, even if it covers the interpreter, because *to the > language interpreter*, your scripts are just data files. But that's > more of a legal distinction than a filesystem hierarchical one. > > ChrisA > Quoting from another thread "What is the difference between "script" code (like Javascript and visual) made for the screen (where such magic values are utilized) and compiled source (made for the machine)?" This obviously impacts on the discussion above, so how does Unix, Windows and other operating systems distinguish these with respect to binary, executable, code library or whatever? -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence