diff --git a/cmake/GaudiProjectConfig.cmake b/cmake/GaudiProjectConfig.cmake index b86518e5d482731586e319539c115b30edf3812b..3f8259904688fcd17542e095cabd2f75f42b7169 100644 --- a/cmake/GaudiProjectConfig.cmake +++ b/cmake/GaudiProjectConfig.cmake @@ -728,7 +728,7 @@ main()") file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/python/${pypack}) file(WRITE ${CMAKE_BINARY_DIR}/python/${pypack}/__init__.py " import os, sys -__path__ = [d for d in [os.path.join(d, '${pypack}') for d in sys.path if d] +__path__ = [d for d in [os.path.join(os.path.realpath(d), '${pypack}') for d in sys.path if d] if (d.startswith('${CMAKE_BINARY_DIR}') or d.startswith('${CMAKE_SOURCE_DIR}')) and (os.path.exists(d) or 'python.zip' in d)]