Hello everyone,

Background
  1. I've created a Windows Service that looks for its configuration data in a sub-folder of os.environ['APPDATA'].
  2. The Service is configured to automatically start after host reboot.
  3. The Service runs successfully when manually started under its custom (i,e,, not Local System) account.
  4. The Service fails with a KeyError: ('APPDATA',) exception when automatically starting after a host reboot.
Questions
  1. Is there some configuration procedure I've overlooked for the custom account the Service runs under?
  2. Is this use of os.environ['APPDATA'] feasible for AUTO-start Services?  If not, what are preferred folders for application-specific data; my preference is to avoid pythonxx\Lib\site-packages\...
Computing Environment
  • python 2.5.4
  • pywin build 212
  • MS Windows XP Pro with service pack 3
Thanks in advance for your feedback.
-- jv
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to