> Hopefully someone can enlighten me with this Windows
issue.
>
> I use os.startfile() to launch pdf and html files. So
far so good.
>
> Build using py2exe. Install as service. When
os.startfile() is
> ran inside
> service, nothing happens. No error message. Nothing as
all.
>
> Even if I build it as .exe, the os.startfile() would
function.
>
> I'm suspecting priviledge issue. But even if I change
the service
> logon as
> myself instead of LocalAdmin, it makes no difference.
Have you tried it as a service running from a .py file? If
you have the
same problem it is not related to py2exe.
Note that services generally have no access to your desktop,
so the
startfile() may actually be succeeding, but invisible to
you. Try playing
with the "Allow service to interact with the
desktop" flag, but even then,
doing this kind of thing from a service is not recommended
(services really
are designed for programs that never need to interact with
the user)
Mark
_______________________________________________
Python-win32 mailing list
Python-win32 python.org
http://mail.python.org/mailman/listinfo/python-win32
|