Skip to content

Setting env.path affects local() operation #659

Description

@floledermann

I am on Windows so I am not sure if this affects other Platforms.

It turns out that when env.path is set, local() stops executing commands on Windows.

Simple testcase:

def test():
    local('echo TEST')

def test_failing():
    env.path = 'foo'
    local('echo TEST')

Output:

$ fab test
[localhost] local: echo TEST
TEST

Done.

$ fab test_failing
[localhost] local: echo TEST

Done.

Note the missing output in the second case.

As far as I understood, env.path only affects run/sudo commands, or am I getting something wrong?

OS: Windows 7
fabric Version: 1.3.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions