Skip to content

Commit

Permalink
We were not setting the python path correctly in the cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasper Peeters committed Dec 14, 2024
1 parent 27f66f9 commit 22851f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/cadabra2.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import os
# Make sure we can find the cadabra2 python module; is always
# installed in PYTHON_SITE_PATH
install_prefix=os.path.realpath(sys.argv[0])
install_prefix=install_prefix.replace(os.sep+'bin'+os.sep+'cadabra2', '${PYTHON_SITE_PATH}')
install_prefix=install_prefix.replace(os.sep+'bin'+os.sep+'cadabra2', '${CMAKE_INSTALL_PREFIX}/${PYTHON_SITE_PATH}')
# print("Module path ", install_prefix)
sys.path.append(install_prefix)

Expand Down

0 comments on commit 22851f9

Please sign in to comment.