Tom E H wrote:
> Larry Bates wrote:
>>> Well that's great, but how do you access the ini file portably?
>> From my original post:
>>
>> Then I use ConfigParser in my application...
>
> Thanks, but where in the directory structure do you put the ini file on
> different platforms? Presumably you ha
Tom E H wrote:
> My Python application includes some data files that need to be accessed by
> modules I distribute with it.
>
> Where can I put them, and how should I arrange my code, so that it works
> across platforms?
>
> On Linux, I could install the data to "/usr/lib/myprogram/datafile", and
Tom E H wrote:
> My Python application includes some data files that need to be accessed by
> modules I distribute with it.
>
> Where can I put them, and how should I arrange my code, so that it works
> across platforms?
>
> On Linux, I could install the data to "/usr/lib/myprogram/datafile", and
Larry Bates wrote:
>> Well that's great, but how do you access the ini file portably?
>
> From my original post:
>
> Then I use ConfigParser in my application...
Thanks, but where in the directory structure do you put the ini file on
different platforms? Presumably you have to hard-code that in
Tom E H wrote:
> Larry Bates wrote:
>> Tom E H wrote:
>>> My Python application includes some data files that need to be accessed
>>> by modules I distribute with it.
>>>
>>> Where can I put them, and how should I arrange my code, so that it works
>>> across platforms?
>>>
>> I almost always send a
Larry Bates wrote:
> Tom E H wrote:
>> My Python application includes some data files that need to be accessed
>> by modules I distribute with it.
>>
>> Where can I put them, and how should I arrange my code, so that it works
>> across platforms?
>>
> I almost always send along an application.ini
Tom E H wrote:
> My Python application includes some data files that need to be accessed by
> modules I distribute with it.
>
> Where can I put them, and how should I arrange my code, so that it works
> across platforms?
>
> On Linux, I could install the data to "/usr/lib/myprogram/datafile", and
My Python application includes some data files that need to be accessed by
modules I distribute with it.
Where can I put them, and how should I arrange my code, so that it works
across platforms?
On Linux, I could install the data to "/usr/lib/myprogram/datafile", and
on Windows to "datafile" rel