

def on_modified(self, event):
    if (os.path.abspath(self.src_path) == self._filename):
        print('Updating shader...')
        glsl_shader = open(self._filename, 'r').read()
        self._canvas.set_shader(glsl_shader)
        self._canvas.update()

dataset/ETHPy150Open alexjc/shadertoy-render/shadertoy-render.py ShaderWatcher.on_modified/VarMisuse@20/22 `event`->`self`