PythonService file creation

Dale Burnett denalione at my-deja.com
Tue Jul 11 09:35:06 EDT 2000


In article <8kd7cv$3uk$1 at nnrp1.deja.com>,
  Dale Burnett <denalione at my-deja.com> wrote:
> In article <8F6D93D27gmcmhypernetcom at 199.171.54.154>,
>   gmcm at hypernet.com (Gordon McMillan) wrote:
> > Dale Burnett wrote:
> >
> > >When running my app at the command prompt using the debug option I
> can
> > >create a new file and write to it.  When the app is started via
> Control
> > >Panel/Services the file is not created and written too.  I have
used
> the
> > >python native file functions and the NT api CreateFile() function.
I
> > >have tried running the service using the System Account with
Interact
> > >with Desktop checked and specifying an account.
> > >Any suggestions?
> >
> > Besides the account it's running under, the only other problem I can
> think
> > of is relying on some (mistaken) notion of what the current
directory
> is.
> >
> > I've written files from services, so I know there's no showstopper.
> >
> > - Gordon
> >
>
> Do you happen to have a code snippet handy?
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>

Thanks for the tip.  I was creating the file in the current directory.
The current directory is different when running the service through the
debugger than when running from Control Panel.

Thanks
Dale


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list