Re: Can't write to a directory made w/ os.makedirs

2012-01-03 Thread David Goldsmith
On Jan 1, 7:43 pm, MRAB wrote: > On 02/01/2012 03:14, David Goldsmith wrote: > > > > > > > > > > > On Jan 1, 7:05 am, Tim Golden  wrote: > >>  On 01/01/2012 12:05, David Goldsmith wrote: > >>    >>  ie can the Python process creating the directories, > > >>    >  Yes. > > >>    >>  and a subproces

Re: Can't write to a directory made w/ os.makedirs

2012-01-02 Thread David Goldsmith
On Jan 2, 6:09 am, Dave Angel wrote: > On 01/01/2012 10:14 PM, David Goldsmith wrote: > > > > > > > > > On Jan 1, 7:05 am, Tim Golden  wrote: > >> On 01/01/2012 12:05, David Goldsmith wrote: > >>   >>  ie can the Python process creating the directories, > > >>   >  Yes. > > >>   >>  and a subproce

Re: Can't write to a directory made w/ os.makedirs

2012-01-02 Thread Dave Angel
On 01/01/2012 10:14 PM, David Goldsmith wrote: On Jan 1, 7:05 am, Tim Golden wrote: On 01/01/2012 12:05, David Goldsmith wrote: >> ie can the Python process creating the directories, > > Yes. > >> and a subprocess called from it create a simple file? > > No. > >> Dependin

Re: Can't write to a directory made w/ os.makedirs

2012-01-02 Thread Tim Golden
On 02/01/2012 03:14, David Goldsmith wrote: Here's my script, in case that helps: It certainly does. A few things occur to me. First, you shouldn't need to double-quote the path; the subprocess.call should do that for you as long as you're using the list version of the param -- which you are.

Re: Can't write to a directory made w/ os.makedirs

2012-01-01 Thread MRAB
On 02/01/2012 03:14, David Goldsmith wrote: On Jan 1, 7:05 am, Tim Golden wrote: On 01/01/2012 12:05, David Goldsmith wrote: >> ie can the Python process creating the directories, > > Yes. > >> and a subprocess called from it create a simple file? > > No. > >> D

Re: Can't write to a directory made w/ os.makedirs

2012-01-01 Thread David Goldsmith
On Jan 1, 7:05 am, Tim Golden wrote: > On 01/01/2012 12:05, David Goldsmith wrote: >  >> ie can the Python process creating the directories, >  > >  > Yes. >  > >  >> and a subprocess called from it create a simple file? >  > >  > No. >  > >  >> Depending on where you are in the filesystem, it may

Re: Can't write to a directory made w/ os.makedirs

2012-01-01 Thread Tim Golden
On 01/01/2012 12:05, David Goldsmith wrote: >> ie can the Python process creating the directories, > > Yes. > >> and a subprocess called from it create a simple file? > > No. > >> Depending on where you are in the filesystem, it may indeed >> be necessary to be running as administrator. But don't

Re: Can't write to a directory made w/ os.makedirs

2012-01-01 Thread David Goldsmith
On Jan 1, 1:37 am, Tim Golden wrote: > On 31/12/2011 22:13, OlyDLG wrote: >  > Hi!  I'm working on a script utilizing os.makedirs to make directories >  > to which I'm then trying to write files created by exe's spawned w/ >  > subprocess.call; I'm developing in Stani's Python Editor, debugging >

Re: [Windows 7, Python 2.6] Can't write to a directory made w/ os.makedirs

2012-01-01 Thread Tim Golden
On 31/12/2011 22:13, OlyDLG wrote: > Hi! I'm working on a script utilizing os.makedirs to make directories > to which I'm then trying to write files created by exe's spawned w/ > subprocess.call; I'm developing in Stani's Python Editor, debugging > using Winpdb. I've gotten to the point where >

[Windows 7, Python 2.6] Can't write to a directory made w/ os.makedirs

2011-12-31 Thread OlyDLG
Hi! I'm working on a script utilizing os.makedirs to make directories to which I'm then trying to write files created by exe's spawned w/ subprocess.call; I'm developing in Stani's Python Editor, debugging using Winpdb. I've gotten to the point where subprocess.Popen._execute_child is raising a W