duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
45 stars 16 forks source link

Made the lookup of maps folder for map randomization robust to path changes #221

Open pmirallesr opened 4 years ago

pmirallesr commented 4 years ago

Added a line 305 and modified 306 to look for the directory of simulator.py and then use that as a reference for looking up /maps/. The previous selection would fail whenever gym-duckietow/gym_duckietown/ was not in the python path, such as when using gym_duckietown as a submodule of another project