246 Print setup information
251 gammalib_path = gammalib.__path__[0]
252 gammalib_version = gammalib.__version__
254 gammalib_path =
'Not found'
255 gammalib_version =
'Unknown'
260 ctools_path = ctools.__path__[0]
261 ctools_version = ctools.__version__
263 ctools_path =
'Not found'
264 ctools_version =
'Unknown'
269 cscripts_path = cscripts.__path__[0]
270 cscripts_version = cscripts.__version__
272 cscripts_path =
'Not found'
273 cscripts_version =
'Unknown'
276 gammalib_env = os.environ.get(
'GAMMALIB',
'Not found')
277 ctools_env = os.environ.get(
'CTOOLS',
'Not found')
280 print(
'\nGammalib / ctools setup info:\n')
281 print(
' Gammalib version ................ %s' % gammalib_version)
282 print(
' ctools version ................ %s' % ctools_version)
283 print(
' cscripts version ................ %s' % cscripts_version)
284 print(
' $GAMMALIB environment variable ... %s' % gammalib_env)
285 print(
' $CTOOLS environment variable ... %s' % ctools_env)
286 print(
' Python executable ................ %s' % sys.executable)
287 print(
' gammalib Python module .......... %s' % gammalib_path)
288 print(
' ctools Python module .......... %s' % ctools_path)
289 print(
' cscripts Python module .......... %s' % cscripts_path)