Re: [Pythonmac-SIG] open() does'nt work with py2app

2005-07-12 Thread Ronald Oussoren
On 12-jul-2005, at 16:03, Kevin Dangoor wrote: > > import user Don't import user just to get at user.home! The user module looks for a ~/.pythonrc.py and executes that. Setting user.home is just a side- effect of its (mostly unwanted) functionality. Use os.path.expanduser('~') to get the home

Re: [Pythonmac-SIG] open() does'nt work with py2app

2005-07-12 Thread Kevin Dangoor
On 7/12/05, Mathieu Renauld <[EMAIL PROTECTED]> wrote: > Hi! > First forgive me for the language mistakes (I'm french)!! Your English is more understandable than some native English writers I've seen :) > > I try to make a program using wxPython and Python 2.4. > There's a function which creates

[Pythonmac-SIG] open() does'nt work with py2app

2005-07-12 Thread Mathieu Renauld
Hi! First forgive me for the language mistakes (I'm french)!! I try to make a program using wxPython and Python 2.4. There's a function which creates a file like that: file = open('myfile.py','w') when I launch the program from a shell (python test.py), it work perfectly and the file is created,