nixpkgs/pkgs/development/python-modules/uxsim/add-qt-plugin-path-to-env.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
320 B
Diff
Raw Normal View History

2024-04-21 23:24:46 -04:00
diff --git a/uxsim/__init__.py b/uxsim/__init__.py
2024-05-13 09:23:36 -04:00
index cf661c5..540e6f8 100644
2024-04-21 23:24:46 -04:00
--- a/uxsim/__init__.py
+++ b/uxsim/__init__.py
2024-05-13 09:23:36 -04:00
@@ -1,3 +1,6 @@
2024-04-21 23:24:46 -04:00
+import os
2024-05-13 09:23:36 -04:00
+if not os.getenv("QT_PLUGIN_PATH"):
2024-04-21 23:24:46 -04:00
+ os.environ["QT_PLUGIN_PATH"] = "$NIX_QT_PLUGIN_PATH"
2024-05-13 09:23:36 -04:00
from .uxsim import *
from .utils import *
from .analyzer import *