We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 910b799 + 6df5ac2 commit 019b010Copy full SHA for 019b010
1 file changed
lambda_uploader/package.py
@@ -272,10 +272,10 @@ def _isfile(path):
272
273
def _python_executable():
274
python_exe = find_executable('python2')
275
- if python_exe is '':
+ if not python_exe:
276
python_exe = find_executable('python')
277
278
279
raise Exception('Unable to locate python executable')
280
281
return python_exe
0 commit comments