Skip to content

Commit

Permalink
fix: distutils.spawn find_executable import
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Aug 31, 2023
1 parent 30356a1 commit eb689f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cropduster/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import math
import PIL
import distutils.spawn
from distutils.spawn import find_executable
from distutils.version import LooseVersion
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
Expand Down Expand Up @@ -52,7 +52,7 @@ def get_jpeg_quality(width, height):

if CROPDUSTER_GIFSICLE_PATH is None:
# Try to find executable in the PATH
CROPDUSTER_GIFSICLE_PATH = distutils.spawn.find_executable("gifsicle")
CROPDUSTER_GIFSICLE_PATH = find_executable("gifsicle")

CROPDUSTER_RETAIN_METADATA = getattr(settings, 'CROPDUSTER_RETAIN_METADATA', False)
CROPDUSTER_CREATE_THUMBS = getattr(settings, 'CROPDUSTER_CREATE_THUMBS', True)

0 comments on commit eb689f9

Please sign in to comment.