depot/third_party/nixpkgs/pkgs/development/python-modules/uxsim/add-qt-plugin-path-to-env.patch
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

11 lines
320 B
Diff

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 *