On BSD'ish Unix systems, Python scripts can be made directly executable, like
shell scripts, by putting the line ::
- #!/usr/bin/env python3.5
+ #!/usr/bin/env python3
(assuming that the interpreter is on the user's :envvar:`PATH`) at the beginning
of the script and giving the file an executable mode. The ``#!`` must be the
>>> import site
>>> site.getusersitepackages()
- '/home/user/.local/lib/python3.5/site-packages'
+ '/home/user/.local/lib/python3.x/site-packages'
Now you can create a file named :file:`usercustomize.py` in that directory and
put anything you want in it. It will affect every invocation of Python, unless