facebookresearch / nle

The NetHack Learning Environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Race condition in environment settings

heiner opened this issue Β· comments

πŸ› Bug

Currently, we set environment variables before init and before reset. In the case of HACKDIR, this is problematic as there's a race when several instances of NLE get reset or initialized simultaneously.

On top of that, using environment variables is a bit ugly in our case.

We should create an nle_settings struct that contains these and funnel them through.

Fixed in #291.