hpw to convert a linux python script ?

Benjamin Kaplan benjamin.kaplan at case.edu
Wed Feb 11 22:06:43 CET 2009


On Wed, Feb 11, 2009 at 3:48 PM, Stef Mientki <stef.mientki at gmail.com>wrote:

> Alec Schueler wrote:
>
>> On Feb 11, 7:58 pm, Stef Mientki <stef.mien... at gmail.com> wrote:
>>
>>
>>> As there are a whole lot of these lines, in a whole lot of files,
>>> I wonder if there's a simple trick to point
>>>  /usr/share/tinybldLin/
>>> to my directory ?
>>>
>>> thanks,
>>> Stef
>>>
>>>
>>
>> Find and replace?
>>
>>
> well I was thinking of a more elegant way,
> so the scripts remains, or better become multi-platform.



That's the problem with using external files- unless you can get to the file
by some combination of os and os.path functions, you're pretty much stuck
checking os.name and/or sys.platform and choosing filenames based on that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090211/c981776c/attachment.html>


More information about the Python-list mailing list