Hi,


I’ve been trying out fabric 1.0 on Windows XP with Python 2.7.  This simple
script fails:



from fabric.api import lcd, local, env

def test():

    with lcd('d:\\'):

        print env.lcwd

        local('dir')



Here’s the output:



>fab test

d:\

[localhost] local: dir

The filename, directory name, or volume label syntax is incorrect.

Fatal error: local() encountered an error (return code 1) while executing
'dir'

Aborting.





As you can see, env.lcwd is set correctly, but is not used properly.  It
looks like there’s some Unix specific path manipulation in the function
_change_cwd() in context_managers.py.  Is this already caught in 1.0.1 or
shall I raise a ticket?



Regards


Robin
_______________________________________________
Fab-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to