[python-win32] Windows service using py2exe

Harald Armin Massa[legacy] haraldarminmassa at gmail.com
Mon May 14 14:26:32 CEST 2012


Antony,

> C:\Documents and Settings\admin\Desktop>test.exe debug
> Debugging service Test - press Ctrl+C to stop.
> Traceback (most recent call last):
>  File "boot_service.py", line 185, in <module>
>  File "win32serviceutil.pyc", line 611, in HandleCommandLine
>  File "win32serviceutil.pyc", line 447, in DebugService
>  File "test.pyc", line 28, in __init__
> WindowsError: [Error 267] The directory name is invalid:
> 'C:\\Documents and Settings\\admin\\Desktop\\sharefolder\\test.e
> xe'

services get run with windows-system directory as current directory.

Most likely there are no access rights to admins user directory. As a
first approach put your exe somewhere else then on the desktop.

Harald



-- 
LightningTalkMan
a brand of GHUM GmbH
Spielberger Straße 49
70435 Stuttgart
0173/9409607


More information about the python-win32 mailing list