From 32adbd8353538e379bd7ef682e7829fc7b371ea0 Mon Sep 17 00:00:00 2001 From: Jocelyn Le Sage Date: Sun, 12 Nov 2023 18:08:26 -0500 Subject: [PATCH] No need to dynamically check if running in docker. --- rootfs/usr/share/dupeguru/send2trash/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootfs/usr/share/dupeguru/send2trash/__init__.py b/rootfs/usr/share/dupeguru/send2trash/__init__.py index c2027db..1d69e8f 100644 --- a/rootfs/usr/share/dupeguru/send2trash/__init__.py +++ b/rootfs/usr/share/dupeguru/send2trash/__init__.py @@ -8,6 +8,9 @@ import os def running_in_docker(): + # No need for dynamic check: this file is used only under Docker. + return True + path = '/proc/self/cgroup' return ( os.path.exists('/.dockerenv') or