renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
328 stars 65 forks source link

Variable is used out of scope #126

Open alevikpes opened 4 years ago

alevikpes commented 4 years ago

Hi! I was getting an error on this line https://github.com/renpy/pygame_sdl2/blob/f60bc1da402c4592311821f674da83c5378ec2fd/fix_virtualenv.py#L19, such that dn is called before assignment. It is true, since it is used out of the for loop scope.

I moved the target definition inside the for loop, but was not sure, if it was correct. Can anyone confirm?