|
|
|
|
|
|
rem variables |
|
|
|
|
|
|
|
rem GRPC-TOOLS required. Install with `nuget install Grpc.Tools`. |
|
|
|
rem GRPC-TOOLS required. Install with `nuget install Grpc.Tools`. |
|
|
|
set SRC_DIR=proto\mlagents\envs\communicator_objects |
|
|
|
set SRC_DIR=proto\mlagents_envs\communicator_objects |
|
|
|
set PYTHON_PACKAGE=mlagents\envs\communicator_objects |
|
|
|
set PYTHON_PACKAGE=mlagents_envs\communicator_objects |
|
|
|
|
|
|
|
rem clean |
|
|
|
rd /s /q %DST_DIR_C% |
|
|
|
|
|
|
rem Generate the init file for the python module |
|
|
|
rem rm -f $DST_DIR_P/$PYTHON_PACKAGE/__init__.py |
|
|
|
setlocal enabledelayedexpansion |
|
|
|
for %%i in (%DST_DIR_P%\%PYTHON_PACKAGE%\*.py) do ( |
|
|
|
for %%i in (%DST_DIR_P%\%PYTHON_PACKAGE%\*.py) do ( |
|
|
|
set FILE=%%~ni |
|
|
|
rem echo from .$(basename $FILE) import * >> $DST_DIR_P/$PYTHON_PACKAGE/__init__.py |
|
|
|
echo from .!FILE! import * >> %DST_DIR_P%\%PYTHON_PACKAGE%\__init__.py |