SOLVED: py2exe Registry Access from NT Service ...

Harald Schneider h_schneider at marketmix.com
Sun Apr 20 06:45:05 EDT 2003


OOps .. your're right. Thank you!

--Harald


"Thomas Heller" <theller at python.net> schrieb im Newsbeitrag
news:7k9rh748.fsf at python.net...
> "Harald Schneider" <h_schneider at marketmix.com> writes:
>
> > Strange ... I changed the order of the import statements from
> >
> > import win32serviceutil,win32service,win32event,pywintypes
> > import os,string,rpcserver,xmlrpclib,confighandler
> > from agent import *
> > from setuptool import RegistryTool
> >
> > to
> >
> > from agent import *
> > from setuptool import RegistryTool
> > import win32serviceutil,win32service,win32event,pywintypes
> > import os,string,rpcserver,xmlrpclib,confighandler
> >
> > and not it works!
> >
> > The registry access is done in a class contained in the agent module.
Under
> > Python 2.1 the order played no role, under 2.2 it does!
> >
>
> I think I've seen this before, but I'm not sure.  IIRC, using 'from
> agent import this, that, whatever' instead of the 'from agent import *'
> may also fix the problem.
>
> Usually it is bad style anyway ;-).
>
> Thomas






More information about the Python-list mailing list