Python search path?? How do I test ntpq?
hmurray at megapathdsl.net
Mon Dec 18 00:52:14 UTC 2017
I tried to test the latest fix to ntpq. It crashed with the same error
because it was using the installed libraries rather than the new libraries I
was trying to test.
I cd-ed to the build directory. ($build/main/ntpclients)
./ntpq -np mon
File "/home/murray/ntpsec/play/hgm/main/ntpclients/ntp/util.py", line 1076,
if "." not in dstadr_refid and ":" not in dstadr_refid:
[murray at hgm ntpclients]$ ll -l ntp
lrwxrwxrwx 1 murray murray 8 Dec 17 15:00 ntp -> ../pylib
[murray at hgm ntpclients]$
Do I have to do something else to use the new libraries? I thought . was
magically on the search path.
['', '/usr/lib/python27.zip', '/usr/lib64/python2.7',
s', '/usr/local/lib/python2.7/site-packages', '/usr/lib/python2.7/site-package
Is '' the same as '.'?
These are my opinions. I hate spam.
More information about the devel