fixed string formatting to work with python 2 and 3

release/4.3a0
Matthew Broadway 2019-03-11 15:05:53 +00:00
parent 03500b004b
commit 5a0e7bb92a
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ except ImportError:
script_path = os.path.abspath(os.path.realpath(__file__))
install_path = os.path.abspath(os.path.realpath(os.path.join('${GTSAM_CYTHON_INSTALL_PATH}', 'setup.py')))
if script_path != install_path:
print('setup.py is being run from an unexpected location: "{script_path}"')
print('setup.py is being run from an unexpected location: "{}"'.format(script_path))
print('please run `make install` and run the script from there')
sys.exit(1)