You'd need to create the lpEnvironment and pass it to createprocess. Something like
env = os.environ.copy()
# remove the calibre path from env['PATH']
raw = u'\0'.join(u'%s=%s'%(k, v) for k, v in env.iteritems())
Then pass raw as lpEnvironment to CreateProcess and remember to set CREATE_UNICODE_ENVIRONMENT in the dwCreationFlags
|