hpw to convert a linux python script ?
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
>>> to my directory ?
>> 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...
More information about the Python-list