ATLAS Offline Software
Loading...
Searching...
No Matches
find_library.py
Go to the documentation of this file.
1#!/usr/bin/env python
2# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3import sys,os
4
5__doc__ = """Print the full path of the requested shared library, as found in LD_LIBRARY_PATH.
6Wildcards are accepted, in which case all (first) matches are printed.
7The 'lib' prefix and 'so' suffix can be omitted. If no match if found, nothing is printed."""
8
9def usage():
10 use = "usage: %s <library> [library]" % os.path.basename(sys.argv[0])
11 print(use + os.linesep*2 + __doc__)
12
13if len(sys.argv) <= 1:
14 usage()
15 sys.exit(1)
16
17try:
18 from PyJobTransformsCore.envutil import find_libraries
19except ImportError:
20 raise EnvironmentError("ATLAS Runtime environment not setup.")
21
22for lib in sys.argv[1:]:
23 full = find_libraries(lib)
24 for f in full: print(f)
void print(char *figname, TCanvas *c1)