views:

12

answers:

0

In windows i m trying to create new process and got stuck while spawning an independent process using win32process.CreateProcess

I have freeze my python script using cxfreeze to make .exe. By using following command i tried to create a new process which would do some tasks.

si = win32process.STARTUPINFO()
details = win32process.CreateProcess(test.exe',test.exe',None,None,False,0,None,None,si)

Following is the resulting error

File "C:\Python31\lib\site-packages\cx_Freeze\initscripts\Console3.py", line 27, in exec(code, m.dict)

File "test.py", line 6, in

import ctypes

File "C:\Python31\lib\ctypes_init_.py", line 7, in

from _ctypes import Union, Structure, Array

ImportError: No module named _ctypes