def getcwd(self):
        # Get path from host context (expand expandable parts)
        host_context_path = [ (self._expand_tilde(path) if expand else path) for path, expand in self.host_context._path ]

        # Join with start path.
        path = os.path.normpath(os.path.join(*[ self.get_start_path() ] + host_context_path))
        assert path[0] == '/' # Returns absolute directory (get_start_path() should be absolute)
        return path
Test to ensure that context is passed through implicitly from outside of
dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/host/base.py/Host.getcwd--crossover with--dataset/ETHPy150Open maraujop/django-crispy-forms/crispy_forms/tests/test_form_helper.py/test_passthrough_context