浏览代码

[cleanup] Use debug mode for some log messages

/develop-generalizationTraining-TrainerController
eshvk 7 年前
当前提交
9345614c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      python/unityagents/environment.py

4
python/unityagents/environment.py


file_name = (file_name.strip()
.replace('.app', '').replace('.exe', '').replace('.x86_64', '').replace('.x86', ''))
true_filename = os.path.basename(os.path.normpath(file_name))
logger.info('The true file name is {}'.format(true_filename))
logger.debug('The true file name is {}'.format(true_filename))
launch_string = None
if platform == "linux" or platform == "linux2":
candidates = glob.glob(os.path.join(cwd, file_name) + '.x86_64')

"Provided filename does not match any environments."
.format(true_filename))
else:
logger.info("This is the launch string {}".format(launch_string))
logger.debug("This is the launch string {}".format(launch_string))
# Launch Unity environment
proc1 = subprocess.Popen(
[launch_string,

正在加载...
取消
保存