We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc43279 commit f456d0aCopy full SHA for f456d0a
pypredefgen_gimp.py
@@ -13,12 +13,10 @@
13
import os
14
import sys
15
16
-# Fix Windows installation failing to import modules from subdirectories in the
17
-# `plug-ins` directory.
18
-if os.name == "nt":
19
- current_module_dirpath = os.path.dirname(inspect.getfile(inspect.currentframe()))
20
- if current_module_dirpath not in sys.path:
21
- sys.path.append(current_module_dirpath)
+# Fix GIMP failing to import modules from subdirectories in the `plug-ins` directory.
+current_module_dirpath = os.path.dirname(inspect.getfile(inspect.currentframe()))
+if current_module_dirpath not in sys.path:
+ sys.path.append(current_module_dirpath)
22
23
import importlib
24
0 commit comments