summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/uxsim/add-qt-plugin-path-to-env.patch
blob: a496456caa4871ea622b6bdbe04922d194a40409 (plain)
1
2
3
4
5
6
7
8
9
10
11
diff --git a/uxsim/__init__.py b/uxsim/__init__.py
index cf661c5..540e6f8 100644
--- a/uxsim/__init__.py
+++ b/uxsim/__init__.py
@@ -1,3 +1,6 @@
+import os
+if not os.getenv("QT_PLUGIN_PATH"):
+    os.environ["QT_PLUGIN_PATH"] = "$NIX_QT_PLUGIN_PATH"
 from .uxsim import *
 from .utils import *
 from .analyzer import *