/usr/lib/python2.7/dist-packages/jnpr/junos/facts/session.py is in python-junos-eznc 2.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 | """
facts['HOME'] = login home directory
"""
from lxml.builder import E
def facts_session(dev, facts):
facts['HOME'] = dev.rpc(
E.command("show cli directory")).findtext('./working-directory')
|