1 diff --git a/bin/opensfm b/bin/opensfm
2 index b5ee4b15..f05c0d1c 100755
10 DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
12 -if [ -x "$(command -v python3)" ]; then
18 -"$PYTHON" "$DIR"/opensfm_main.py "$@"
19 +exec "$DIR"/opensfm_main.py "$@"
20 diff --git a/bin/opensfm_main.py b/bin/opensfm_main.py
21 index 31249e12..cc71560c 100755
22 --- a/bin/opensfm_main.py
23 +++ b/bin/opensfm_main.py
25 +#!/usr/bin/env python
28 from os.path import abspath, join, dirname
30 diff --git a/setup.py b/setup.py
31 index 1120717f..438a16db 100644
34 @@ -71,6 +71,7 @@ setuptools.setup(
36 "bin/opensfm_run_all",
38 + "bin/opensfm_main.py",