holsonjr 0 Newbie Poster

I am beating my head against an python, cygwin, windows problem that I can not resolve.

The script is executing os.system(command) which is OK but os.system is executing in an "sh" shell. I have cygwin installed on my system but I just want the commands executed in a cmd environment.

I have set comspec to c:\windows\system32\cmd.exe and shell to the same. If I pull cygwin\bin out of the path then I get an error that "sh" is not a valid command.

Anyway to tell why os.system thinks the shell is sh? And can I force it to use cmd?