python - Not getting LD_LIBRARY_PATH -
i amending existing script in want check set of libraries used in executable shared libraries called @ run time. have list of libraries need compare shared libraries. getting shared libraries trying ld_library_path giving below code had no luck. tried checking variable on command line giving
echo $ld_library_path and returned /opt/cray/csa/3.0.0-1_2.0501.47112.1.91.ari/lib64:/opt/cray/job/1.5.5-0.1_2.0501.48066.2.43.ari/lib64
the things have tried (this python script)
#! /usr/bin/python -e import os ld_lib_path = os.environ.get('ld_library_path') #ld_lib_path = os.environ["ld_library_path"]
i think missing print in script? works me command line:
python -c 'import os; temp=os.environ.get("ld_library_path"); print temp' script:
#! /usr/bin/python -e import os ld_lib_path = os.environ.get('ld_library_path') print ld_lib_path
Comments
Post a Comment