openai / retro

Retro Games in Gym
MIT License
3.35k stars 524 forks source link

fix: raspi installation error (openai/retro#242) #251

Open mapostolidou opened 2 years ago

mapostolidou commented 2 years ago

The template is declared just under the if statement so if the code reaches the elif at line 490 it is out of scope.

I solved it by inserting a line after the elif (line 490) and with template so that the template is declared even when the code runs from the elif.

It should work fine if you also move the template from line 480 and place it before the if block but I didn't test that.