def on_modified(self, event):
        if os.path.abspath(event.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/original