Skip to content

Commit f456d0a

Browse files
committed
Apply fix for local modules for all OSs
1 parent bc43279 commit f456d0a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pypredefgen_gimp.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
import os
1414
import sys
1515

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)
16+
# Fix GIMP failing to import modules from subdirectories in the `plug-ins` directory.
17+
current_module_dirpath = os.path.dirname(inspect.getfile(inspect.currentframe()))
18+
if current_module_dirpath not in sys.path:
19+
sys.path.append(current_module_dirpath)
2220

2321
import importlib
2422

0 commit comments

Comments
 (0)