Error while trying to start SITL from cygwin

I’ve tried to setup SITL by following the instructions from this link:

However, when I run the following command:
cd ~/ardupilot/ArduCopter
…/Tools/autotest/ --map --console

I get the following error:

It used to work previously, until I used the git submodule update --init --recursive
Could anyone suggest what to do in this case?

You could change this line of code to use relative paths:

Tools\ardupilotwaf\ line 126
tsk.env.SUBMODULE_PATH = module_node.abspath()

and after:
tsk.env.SUBMODULE_PATH = module_node.relpath()

Thanks a lot, it’s working perfectly now!