Skip to content

Commit

Permalink
No need to dynamically check if running in docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Nov 12, 2023
1 parent d606ddd commit 32adbd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rootfs/usr/share/dupeguru/send2trash/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32adbd8

Please sign in to comment.