Re: ✘PYTHONPATH is not set
Richard Laager
rlaager at wiktel.com
Tue Aug 28 23:54:06 UTC 2018
On 08/28/2018 05:56 PM, Gary E. Miller via devel wrote:
> if "PYTHONPATH" in os.environ:
> - print("--- PYTHONPATH is set, "
> - "this may mask or cause library-related problems ---")
> + print("--- PYTHONPATH is not set, "
> + "loading the Python ntp library may be troublesome ---")
I agree with Gary. The resulting code is obviously wrong.
The fix is to change "in" to "not in":
if "PYTHONPATH" not in os.environ:
print("--- PYTHONPATH is not set, "
"loading the Python ntp library may be troublesome ---")
--
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20180828/dd89db0c/attachment.bin>
More information about the devel
mailing list