Skip to content

Commit

Permalink
Add site-packages directory to pluginpath
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Flowdalic committed Sep 27, 2024
1 parent 29ee5d0 commit 5c53854
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dool/dool.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import sys
import time
import signal
import sysconfig

from collections.abc import Sequence

Expand All @@ -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/',
]
Expand Down

0 comments on commit 5c53854

Please sign in to comment.