Skip to content

Commit 6df5ac2

Browse files
committed
Handle find_executable returning None or ''
1 parent 910b799 commit 6df5ac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lambda_uploader/package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ def _isfile(path):
272272

273273
def _python_executable():
274274
python_exe = find_executable('python2')
275-
if python_exe is '':
275+
if not python_exe:
276276
python_exe = find_executable('python')
277277

278-
if python_exe is '':
278+
if not python_exe:
279279
raise Exception('Unable to locate python executable')
280280

281281
return python_exe

0 commit comments

Comments
 (0)