From 5c538542a5bf2b16c496ab9d0a15f439f1ba1e49 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 27 Sep 2024 14:40:48 +0200 Subject: [PATCH] Add site-packages directory to pluginpath A flit installation will put the dool module into the site-packages directory, for example/usr/lib/python3.12/site-packages/dool/plugins/. Therefore, dool should also look there for its plugins. --- dool/dool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dool/dool.py b/dool/dool.py index f7db64d..bc9be87 100755 --- a/dool/dool.py +++ b/dool/dool.py @@ -33,6 +33,7 @@ import sys import time import signal +import sysconfig from collections.abc import Sequence @@ -41,6 +42,7 @@ pluginpath = [ os.path.expanduser('~/.dool/'), # home + /.dool/ os.path.abspath(os.path.dirname(sys.argv[0])) + '/plugins/', # binary path + /plugins/ + sysconfig.get_path('purelib') + '/dool/plugins/', '/usr/share/dool/', '/usr/local/share/dool/', ]