Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 75e619c

Browse files
committed
use shutil instead of distutils to find executable
To find if we have to use the dinghy compose file or the normal compose file we now use shutil to find if dinghy is installed. Signed-off-by: BlackEagle <[email protected]>
1 parent c241893 commit 75e619c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/environment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import contextlib
88
import codecs
99
import re
10-
from distutils.spawn import find_executable
10+
import shutil
1111

1212

1313
def split_env(env):
@@ -51,7 +51,7 @@ def __check_environment(self):
5151
raise ValueError("Env does not contain %s" % requiredkey)
5252

5353
def get_compose_filename(self):
54-
dingyexec = find_executable('dinghy')
54+
dingyexec = shutil.which('dinghy')
5555
if None is not dingyexec:
5656
return 'docker-compose-dinghy.yml'
5757
return 'docker-compose.yml'

0 commit comments

Comments
 (0)