# Application Directories
=
# FIXME doesn't account for venv linked to global site-packages
: =
"""
Return the major-minor version of the current Python as a string, e.g.
"3.7" or "3.10".
"""
return
"""Return 'pathname' with 'new_root' prepended.
If 'pathname' is relative, this is equivalent to os.path.join(new_root, pathname).
Otherwise, it requires making 'pathname' relative and then joining the
two, which is tricky on DOS/Windows and Mac OS.
This is borrowed from Python's standard library's distutils module.
"""
return
return
== :
=
=
return
=
# FIXME: keep src in cwd for now (it is not a temporary folder)
=
# In case the current working directory has been renamed or deleted
# under macOS + virtualenv sys.prefix is not properly resolved
# it is something like /path/to/python/bin/..
return
# Use getusersitepackages if this is present, as it ensures that the
# value is initialised properly.
: =
=
return