From 06816e904573ec3feb8a27a230d36ee5d488e72b Mon Sep 17 00:00:00 2001 From: pirate486743186 <429925+pirate486743186@users.noreply.github.com> Date: Thu, 11 May 2023 20:32:45 +0200 Subject: block local python (#5826) Co-authored-by: pirate486743186 <> --- etc/inc/allow-python2.inc | 1 + etc/inc/allow-python3.inc | 1 + etc/inc/disable-interpreters.inc | 2 ++ 3 files changed, 4 insertions(+) diff --git a/etc/inc/allow-python2.inc b/etc/inc/allow-python2.inc index b0525e2e1..0d4ab8c35 100644 --- a/etc/inc/allow-python2.inc +++ b/etc/inc/allow-python2.inc @@ -2,6 +2,7 @@ # Persistent customizations should go in a .local file. include allow-python2.local +noblacklist ${HOME}/.local/lib/python2* noblacklist ${PATH}/python2* noblacklist /usr/include/python2* noblacklist /usr/lib/python2* diff --git a/etc/inc/allow-python3.inc b/etc/inc/allow-python3.inc index d968886b0..0693fb7e7 100644 --- a/etc/inc/allow-python3.inc +++ b/etc/inc/allow-python3.inc @@ -2,6 +2,7 @@ # Persistent customizations should go in a .local file. include allow-python3.local +noblacklist ${HOME}/.local/lib/python3* noblacklist ${PATH}/python3* noblacklist /usr/include/python3* noblacklist /usr/lib/python3* diff --git a/etc/inc/disable-interpreters.inc b/etc/inc/disable-interpreters.inc index ca43e5ed9..4e3590fed 100644 --- a/etc/inc/disable-interpreters.inc +++ b/etc/inc/disable-interpreters.inc @@ -61,6 +61,7 @@ blacklist /usr/lib64/ruby # Programs using python: deluge, firefox addons, filezilla, cherrytree, xchat, hexchat, libreoffice, scribus # Python 2 +blacklist ${HOME}/.local/lib/python2* blacklist ${PATH}/python2* blacklist /usr/include/python2* blacklist /usr/lib/python2* @@ -70,6 +71,7 @@ blacklist /usr/share/python2* # You will want to add noblacklist for python3 stuff in the firefox and/or chromium profiles if you use the Gnome connector (see Issue #2026) # Python 3 +blacklist ${HOME}/.local/lib/python3* blacklist ${PATH}/python3* blacklist /usr/include/python3* blacklist /usr/lib/python3* -- cgit v1.2.3-54-g00ecf