in scripts/ebcli_installer.py [0:0]
def _original_eb_location(virtualenv_location):
"""
Function returns the location of the directory within the virtualenv,
".ebcli-virtual-env", where the original `eb` executable is expected
to be found. This is `bin` on Unix/Linux and `Scripts` on Windows.
:param virtualenv_location: the relative or absolute path to the location
where the virtualenv, ".ebcli-virtual-env", was
created.
:return: the location of the directory within the virtualenv where
the original `eb` executable is expected to be found
"""
if sys.platform.startswith('win32'):
scripts_directory = 'Scripts'
else:
scripts_directory = 'bin'
return os.path.join(
os.path.abspath(virtualenv_location),
VIRTUALENV_DIR_NAME,
scripts_directory
)