Skip to content

Commit

Permalink
more explicit runtimeerror
Browse files Browse the repository at this point in the history
  • Loading branch information
scarrazza authored and cschwan committed Aug 20, 2020
1 parent 9e96b26 commit d01c324
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wrappers/python/src/pineappl/loader.py
Original file line number Diff line number Diff line change
@@ -4,8 +4,9 @@

# Loading pineppl library.
if not pkgconfig.exists('pineappl_capi'):
raise RuntimeError('Cannot find the PineAPPL C-API, please make' \
'sure pkgconfig is able to access the pineappl')
raise RuntimeError('Cannot find the PineAPPL C-API, please make sure ' \
'the PineAPPL Rust library is properly installed and ' \
'that pkgconfig is able to access the pineappl.pc file.')

paths = pkgconfig.libs('pineappl_capi').split(' ')
libdir = f'{paths[0][2:]}/lib{paths[1][2:]}.so'

0 comments on commit d01c324

Please sign in to comment.