We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 910b799 commit 6df5ac2Copy full SHA for 6df5ac2
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