浏览代码

change windowd script

/tag-0.12.1.dev0
Chris Elion 5 年前
当前提交
cf31e3b2
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      protobuf-definitions/make_for_win.bat

8
protobuf-definitions/make_for_win.bat


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
正在加载...
取消
保存