I need to create a windows batch script which creates and moves one specific file to PYTHONPATH\Lib\distutils folder.
Here is what I am attempting to do:
ECHO [build] >> distutils.cfg
ECHO compiler=mingw32 >> distutils.cfg
MOVE distutils.cfg PYTHONPATH\Lib\distutils
However, PYTHONPATH does not exist but I know that Python location is set in PATH which I can check.
How can I parse PATH and extract Python location from it?