Re: Finding where to store application data portably

2005-09-23 Thread Ron Adam
Steven D'Aprano wrote: > On Thu, 22 Sep 2005 19:09:28 +0400, en.karpachov wrote: > > >>There is an other way around: look at your home dir as if it is your >>"settings" dir and don't clutter it with files other than application >>config dot-files. Just make ~/files/, ~/bin/ ~/lib/ etc. for it.

Re: Finding where to store application data portably

2005-09-23 Thread Steven D'Aprano
On Thu, 22 Sep 2005 19:09:28 +0400, en.karpachov wrote: > There is an other way around: look at your home dir as if it is your > "settings" dir and don't clutter it with files other than application > config dot-files. Just make ~/files/, ~/bin/ ~/lib/ etc. for it. Do you put everything into /et

Re: Finding where to store application data portably

2005-09-22 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Ron Adam <[EMAIL PROTECTED]> wrote: > Tony Houghton wrote: > >> > This works on Win XP. Not sure if it will work on Linux. >> > >> > import os >> > >> > parent = os.path.split(os.path.abspath(os.sys.argv[0]))[0] >> > file = parent + os.sep + '.bombz' >> >> Ooh, no,

Re: Finding where to store application data portably

2005-09-22 Thread Ron Adam
Tony Houghton wrote: > > This works on Win XP. Not sure if it will work on Linux. > > > > import os > > > > parent = os.path.split(os.path.abspath(os.sys.argv[0]))[0] > > file = parent + os.sep + '.bombz' > > Ooh, no, I don't want saved data to go in the installation directory. In > genera

Re: Finding where to store application data portably

2005-09-22 Thread Ron Adam
Steve Holden wrote: > Ron Adam wrote: > >> Tony Houghton wrote: >> >>> I'm using pygame to write a game called Bombz which needs to save some >>> data in a directory associated with it. In Unix/Linux I'd probably use >>> "~/.bombz", in Windows something like >>> "C:\Documents And Settings\\Applic

Re: Finding where to store application data portably

2005-09-22 Thread en.karpachov
On Thu, 22 Sep 2005 00:23:56 +1000 Steven D'Aprano wrote: > I wish the Linux Standard Base folks would specify that settings files > should all go into a subdirectory like ~/settings rather than filling up > the home directory with cruft. That was acceptable in the days when people > only looked a

Re: Finding where to store application data portably

2005-09-22 Thread Mike Meyer
rbt <[EMAIL PROTECTED]> writes: > On Tue, 2005-09-20 at 23:03 +0100, Tony Houghton wrote: >> I'm using pygame to write a game called Bombz which needs to save some >> data in a directory associated with it. In Unix/Linux I'd probably use >> "~/.bombz", in Windows something like >> "C:\Documents An

Re: Finding where to store application data portably

2005-09-22 Thread rbt
On Tue, 2005-09-20 at 23:03 +0100, Tony Houghton wrote: > I'm using pygame to write a game called Bombz which needs to save some > data in a directory associated with it. In Unix/Linux I'd probably use > "~/.bombz", in Windows something like > "C:\Documents And Settings\\Applicacation Data\Bombz".

Re: Finding where to store application data portably

2005-09-22 Thread Steve Holden
Ron Adam wrote: > Tony Houghton wrote: > >>I'm using pygame to write a game called Bombz which needs to save some >>data in a directory associated with it. In Unix/Linux I'd probably use >>"~/.bombz", in Windows something like >>"C:\Documents And Settings\\Applicacation Data\Bombz". >> >>There are

Re: Finding where to store application data portably

2005-09-22 Thread Tony Houghton
Ron Adam wrote: > Tony Houghton wrote: > >> >> I'm using pygame to write a game called Bombz which needs to save some >> data in a directory associated with it. In Unix/Linux I'd probably use >> "~/.bombz", in Windows something like >> "C:\Documents And Settings\\Applicacation Data\Bombz".

Re: Finding where to store application data portably

2005-09-22 Thread Steven D'Aprano
On Thu, 22 Sep 2005 02:14:57 +, Ron Adam wrote: >>>Don't all file managers have an option to hide files beginning with '.'? >> >> >> I don't want to hide them. I just don't want them in my face when I open >> my home directory. > > +1 > > This has been a gripe of mine on windows as well, a

Re: Finding where to store application data portably

2005-09-21 Thread Ron Adam
Tony Houghton wrote: > > I'm using pygame to write a game called Bombz which needs to save some > data in a directory associated with it. In Unix/Linux I'd probably use > "~/.bombz", in Windows something like > "C:\Documents And Settings\\Applicacation Data\Bombz". > > There are plenty of message

Re: Finding where to store application data portably

2005-09-21 Thread Ron Adam
Steven D'Aprano wrote: > On Wed, 21 Sep 2005 20:07:54 +0100, Tony Houghton wrote: > > >> > I wish the Linux Standard Base folks would specify that settings files >> > should all go into a subdirectory like ~/settings rather than filling up >> > the home directory with cruft. That was acceptable

Re: Finding where to store application data portably

2005-09-21 Thread Steven D'Aprano
On Wed, 21 Sep 2005 20:07:54 +0100, Tony Houghton wrote: > > I wish the Linux Standard Base folks would specify that settings files > > should all go into a subdirectory like ~/settings rather than filling up > > the home directory with cruft. That was acceptable in the days when > > people >

Re: Finding where to store application data portably

2005-09-21 Thread Tony Houghton
Steven D'Aprano wrote: > On Tue, 20 Sep 2005 23:03:52 +0100, Tony Houghton wrote: > > >>I'm using pygame to write a game called Bombz which needs to save some >>data in a directory associated with it. In Unix/Linux I'd probably use >>"~/.bombz", in Windows something like >>"C:\Documents And

Re: Finding where to store application data portably

2005-09-21 Thread Trent Mick
> > > I'm using pygame to write a game called Bombz which needs to save some > > > data in a directory associated with it. In Unix/Linux I'd probably use > > > "~/.bombz", in Windows something like > > > "C:\Documents And Settings\\Applicacation Data\Bombz". > > > > In Windows, you shouldn't hard-

Re: Finding where to store application data portably

2005-09-21 Thread Jeff Schwab
Steven D'Aprano wrote: > As a Linux user, I really am sick of every damn application, script and > program under the sun filling the top level of my home directory with > dot-files. > > I wish the Linux Standard Base folks would specify that settings files > should all go into a subdirectory like

Re: Finding where to store application data portably

2005-09-21 Thread Steve Holden
Steven D'Aprano wrote: > On Tue, 20 Sep 2005 23:03:52 +0100, Tony Houghton wrote: > > >>I'm using pygame to write a game called Bombz which needs to save some >>data in a directory associated with it. In Unix/Linux I'd probably use >>"~/.bombz", in Windows something like >>"C:\Documents And Setti

Re: Finding where to store application data portably

2005-09-21 Thread Steven D'Aprano
On Tue, 20 Sep 2005 23:03:52 +0100, Tony Houghton wrote: > I'm using pygame to write a game called Bombz which needs to save some > data in a directory associated with it. In Unix/Linux I'd probably use > "~/.bombz", in Windows something like > "C:\Documents And Settings\\Applicacation Data\Bombz"

Re: Finding where to store application data portably

2005-09-20 Thread Peter Hansen
Tony Houghton wrote: > > I'm using pygame to write a game called Bombz which needs to save some > data in a directory associated with it. In Unix/Linux I'd probably use > "~/.bombz", in Windows something like > "C:\Documents And Settings\\Applicacation Data\Bombz". > > There are plenty of message

Re: Finding where to store application data portably

2005-09-20 Thread Robert Kern
Tony Houghton wrote: > I'm using pygame to write a game called Bombz which needs to save some > data in a directory associated with it. In Unix/Linux I'd probably use > "~/.bombz", in Windows something like > "C:\Documents And Settings\\Applicacation Data\Bombz". > > There are plenty of messages i