Re: Accessing application data portably

2006-08-23 Thread Tom E H
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

Re: Accessing application data portably

2006-08-23 Thread Tom E H
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 a

Accessing application data portably

2006-08-23 Thread Tom E H
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