From a8b6cb12f921b167c10a416f2974970e85ad6a1b Mon Sep 17 00:00:00 2001 From: Stuart Axon Date: Mon, 6 Mar 2023 15:34:27 +0000 Subject: [PATCH] Fix resource path in example1.py Adjust resource path, so example1.py works when running from it's own directory. --- src/python/example1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/example1.py b/src/python/example1.py index 37690542..9bf6ef2c 100644 --- a/src/python/example1.py +++ b/src/python/example1.py @@ -137,7 +137,7 @@ def cb(): try: icons_data = nanogui.load_image_directory(self.nvg_context(), "../icons") except: - icons_data = nanogui.load_image_directory(self.nvg_context(), "../resources/icons") + icons_data = nanogui.load_image_directory(self.nvg_context(), "../../resources/icons") Label(window, "Image panel & scroll panel", "sans-bold")